@@ -62,8 +62,9 @@ def compile
62
62
fail "Method 'compile' must be defined"
63
63
end
64
64
65
- # Modifies the application's runtime configuration. The component is expected to transform members of the +context+
66
- # (e.g. +@java_home+, +@java_opts+, etc.) in whatever way is necessary to support the function of the component.
65
+ # Modifies the application's runtime configuration. The component is expected to transform members of the
66
+ # +context+ # (e.g. +@java_home+, +@java_opts+, etc.) in whatever way is necessary to support the function of the
67
+ # component.
67
68
#
68
69
# Container components are also expected to create the command required to run the application. These components
69
70
# are expected to read the +context+ values and take them into account when creating the command.
@@ -76,8 +77,8 @@ def release
76
77
77
78
protected
78
79
79
- # Downloads an item with the given name and version from the given URI, then yields the resultant file to the given
80
- # block.
80
+ # Downloads an item with the given name and version from the given URI, then yields the resultant file to the
81
+ # given # block.
81
82
#
82
83
# @param [JavaBuildpack::Util::TokenizedVersion] version
83
84
# @param [String] uri
@@ -112,7 +113,8 @@ def download_jar(version, uri, jar_name, target_directory = @droplet.sandbox, na
112
113
#
113
114
# @param [String] version the version of the download
114
115
# @param [String] uri the uri of the download
115
- # @param [Pathname] target_directory the directory to expand the TAR file to. Defaults to the component's sandbox.
116
+ # @param [Pathname] target_directory the directory to expand the TAR file to. Defaults to the component's
117
+ # sandbox.
116
118
# @param [String] name an optional name for the download and expansion. Defaults to +@component_name+.
117
119
# @return [Void]
118
120
def download_tar ( version , uri , target_directory = @droplet . sandbox , name = @component_name )
@@ -127,10 +129,12 @@ def download_tar(version, uri, target_directory = @droplet.sandbox, name = @comp
127
129
# Downloads a given ZIP file and expands it.
128
130
#
129
131
# @param [Boolean] strip_top_level whether to strip the top-level directory when expanding. Defaults to +true+.
130
- # @param [Pathname] target_directory the directory to expand the ZIP file to. Defaults to the component's sandbox.
132
+ # @param [Pathname] target_directory the directory to expand the ZIP file to. Defaults to the component's
133
+ # sandbox.
131
134
# @param [String] name an optional name for the download. Defaults to +@component_name+.
132
135
# @return [Void]
133
- def download_zip ( version , uri , strip_top_level = true , target_directory = @droplet . sandbox , name = @component_name )
136
+ def download_zip ( version , uri , strip_top_level = true , target_directory = @droplet . sandbox ,
137
+ name = @component_name )
134
138
download ( version , uri , name ) do |file |
135
139
with_timing "Expanding #{ name } to #{ target_directory . relative_path_from ( @droplet . root ) } " do
136
140
if strip_top_level
0 commit comments