@@ -22,29 +22,29 @@ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
22
22
require 'java_buildpack/buildpack'
23
23
24
24
case 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 )
28
28
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
39
39
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 )
45
45
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
50
50
end
0 commit comments