Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions bin/ruby-run
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
require 'java_buildpack/buildpack'

case ARGV[0]
when "compile"
app_dir = ARGV[1]
JavaBuildpack::Buildpack.with_buildpack(app_dir, nil, nil, 'Compile failed with exception %s', &:compile)
when 'compile'
app_dir = ARGV[1]
JavaBuildpack::Buildpack.with_buildpack(app_dir, nil, nil, 'Compile failed with exception %s', &:compile)

when "detect"
app_dir = ARGV[1]
components = JavaBuildpack::Buildpack.with_buildpack(app_dir, nil, nil, 'Detect failed with exception %s',
&:detect).compact
if components.empty?
abort
else
str = components.join(' ')
puts str.length > 255 ? str.slice(0..251) + '...' : str
end
when 'detect'
app_dir = ARGV[1]
components = JavaBuildpack::Buildpack.with_buildpack(app_dir, nil, nil, 'Detect failed with exception %s',
&:detect).compact
if components.empty?
abort
else
str = components.join(' ')
puts str.length > 255 ? str.slice(0..251) + '...' : str
end

when "finalize"
app_dir = ARGV[1]
deps_dir = ARGV[3]
index = ARGV[4]
JavaBuildpack::Buildpack.with_buildpack(app_dir, deps_dir, index, 'Finalize failed with exception %s', &:compile)
when 'finalize'
app_dir = ARGV[1]
deps_dir = ARGV[3]
index = ARGV[4]
JavaBuildpack::Buildpack.with_buildpack(app_dir, deps_dir, index, 'Finalize failed with exception %s', &:compile)

when "release"
app_dir = ARGV[1]
output = JavaBuildpack::Buildpack.with_buildpack(app_dir, nil, nil, 'Release failed with exception %s', &:release)
puts output
when 'release'
app_dir = ARGV[1]
output = JavaBuildpack::Buildpack.with_buildpack(app_dir, nil, nil, 'Release failed with exception %s', &:release)
puts output
end
2 changes: 1 addition & 1 deletion rakelib/dependency_cache_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def component_ids
offline_cache = offline_cache.split(',')
(conf << offline_cache).flatten!.uniq!
end
conf << "ruby"
conf << 'ruby'
end

def component_configuration(component_id)
Expand Down