@@ -22,29 +22,29 @@ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
2222require 'java_buildpack/buildpack'
2323
2424case ARGV [ 0 ]
25- when " compile"
26- app_dir = ARGV [ 1 ]
27- JavaBuildpack ::Buildpack . with_buildpack ( app_dir , nil , nil , 'Compile failed with exception %s' , &:compile )
25+ when ' compile'
26+ app_dir = ARGV [ 1 ]
27+ JavaBuildpack ::Buildpack . with_buildpack ( app_dir , nil , nil , 'Compile failed with exception %s' , &:compile )
2828
29- when " detect"
30- app_dir = ARGV [ 1 ]
31- components = JavaBuildpack ::Buildpack . with_buildpack ( app_dir , nil , nil , 'Detect failed with exception %s' ,
32- &:detect ) . compact
33- if components . empty?
34- abort
35- else
36- str = components . join ( ' ' )
37- puts str . length > 255 ? str . slice ( 0 ..251 ) + '...' : str
38- end
29+ when ' detect'
30+ app_dir = ARGV [ 1 ]
31+ components = JavaBuildpack ::Buildpack . with_buildpack ( app_dir , nil , nil , 'Detect failed with exception %s' ,
32+ &:detect ) . compact
33+ if components . empty?
34+ abort
35+ else
36+ str = components . join ( ' ' )
37+ puts str . length > 255 ? str . slice ( 0 ..251 ) + '...' : str
38+ end
3939
40- when " finalize"
41- app_dir = ARGV [ 1 ]
42- deps_dir = ARGV [ 3 ]
43- index = ARGV [ 4 ]
44- JavaBuildpack ::Buildpack . with_buildpack ( app_dir , deps_dir , index , 'Finalize failed with exception %s' , &:compile )
40+ when ' finalize'
41+ app_dir = ARGV [ 1 ]
42+ deps_dir = ARGV [ 3 ]
43+ index = ARGV [ 4 ]
44+ JavaBuildpack ::Buildpack . with_buildpack ( app_dir , deps_dir , index , 'Finalize failed with exception %s' , &:compile )
4545
46- when " release"
47- app_dir = ARGV [ 1 ]
48- output = JavaBuildpack ::Buildpack . with_buildpack ( app_dir , nil , nil , 'Release failed with exception %s' , &:release )
49- puts output
46+ when ' release'
47+ app_dir = ARGV [ 1 ]
48+ output = JavaBuildpack ::Buildpack . with_buildpack ( app_dir , nil , nil , 'Release failed with exception %s' , &:release )
49+ puts output
5050end
0 commit comments