Skip to content

Commit

Permalink
error out if an invalid RUBY_VERSION is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Nov 8, 2011
1 parent eb12641 commit 297e0ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/language_pack/ruby.rb
Expand Up @@ -42,9 +42,9 @@ def default_process_types

def compile
Dir.chdir(build_path)
install_ruby
setup_language_pack_environment
allow_git do
install_ruby
install_language_pack_gems
build_bundler
create_database_yml
Expand Down Expand Up @@ -111,11 +111,13 @@ def install_ruby
Dir.chdir(build_ruby_path) do
run("curl #{VENDOR_URL}/#{vendor_ruby_path.sub("ruby", "ruby-build")}.tgz -s -o - | tar zxf -")
end
error "Invalid RUBY_VERSION specified: #{ruby_version}" unless $?.success?

FileUtils.mkdir_p(slug_vendor_ruby)
Dir.chdir(slug_vendor_ruby) do
run("curl #{VENDOR_URL}/#{vendor_ruby_path}.tgz -s -o - | tar zxf -")
end
error "Invalid RUBY_VERSION specified: #{ruby_version}" unless $?.success?

bin_dir = "bin"
FileUtils.mkdir_p bin_dir
Expand Down

0 comments on commit 297e0ba

Please sign in to comment.