lib/language_pack/ruby.rb
# vendors JVM into the slug for JRuby
vendors JVM into the slug for JRuby
vendors JVM into the slug for JRuby
def install_jvm
    if ruby_version_jruby?
      topic "Installing JVM: #{JVM_VERSION}"
      FileUtils.mkdir_p(slug_vendor_jvm)
      Dir.chdir(slug_vendor_jvm) do
        run("curl #{JVM_BASE_URL}/#{JVM_VERSION}.tar.gz -s -o - | tar xzf -")
      end
      bin_dir = "bin"
      FileUtils.mkdir_p bin_dir
      Dir["#{slug_vendor_jvm}/bin/*"].each do |bin|
        run("ln -s ../#{bin} #{bin_dir}")
      end
    end
  end
def install_jvm if ruby_version_jruby? topic "Installing JVM: #{JVM_VERSION}" FileUtils . mkdir_p ( slug_vendor_jvm ) Dir . chdir ( slug_vendor_jvm ) do run ( "curl #{JVM_BASE_URL}/#{JVM_VERSION}.tar.gz -s -o - | tar xzf -" ) end bin_dir = "bin" FileUtils . mkdir_p bin_dir Dir [ "#{slug_vendor_jvm}/bin/*" ] . each do | bin | run ( "ln -s ../#{bin} #{bin_dir}" ) end end end
vendors JVM into the slug for JRuby
vendors JVM into the slug for JRuby