Skip to content

Commit 3e4bfab

Browse files
Merge pull request #1001 from cloudfoundry/rubocop
Fixes rubocop violations
2 parents b1e58f8 + 017b8f1 commit 3e4bfab

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

bin/ruby-run

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,29 @@ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
2222
require 'java_buildpack/buildpack'
2323

2424
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)
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
5050
end

rakelib/dependency_cache_task.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def component_ids
119119
offline_cache = offline_cache.split(',')
120120
(conf << offline_cache).flatten!.uniq!
121121
end
122-
conf << "ruby"
122+
conf << 'ruby'
123123
end
124124

125125
def component_configuration(component_id)

0 commit comments

Comments
 (0)