#!/usr/bin/env ruby require File.expand_path('../../lib/openshifter/init', __FILE__) if CONFIG['install'] == 'remote' puts '-> Can not be used with remote install.' exit(0) end puts "-> Downloading jRuby #{CONFIG['jruby']}" `curl -o .openshift/lib/jruby-#{CONFIG['jruby']}.jar "http://jruby.org.s3.amazonaws.com/downloads/#{CONFIG['jruby']}/jruby-complete-#{CONFIG['jruby']}.jar"` puts "-> Downloading jRuby-Rack #{CONFIG['jrack']}" `curl -o .openshift/lib/jruby-rack.jar "http://repository.codehaus.org/org/jruby/rack/jruby-rack/#{CONFIG['jrack']}/jruby-rack-#{CONFIG['jrack']}.jar"` puts '-> Installing Bundler' puts `java -jar .openshift/lib/jruby-#{CONFIG['jruby']}.jar -S gem install bundler --no-ri --no-rdoc`