Module: Apprunway::JRuby
Instance Method Summary collapse
Instance Method Details
#cmd(str = '') ⇒ Object
42 43 44 |
# File 'lib/apprunway.rb', line 42 def cmd(str = '') system dir + "bin/jruby #{str}" end |
#compile ⇒ Object
46 47 48 |
# File 'lib/apprunway.rb', line 46 def compile cmd "-S warble" end |
#dir ⇒ Object
38 39 40 |
# File 'lib/apprunway.rb', line 38 def dir File.join("./vendor/jruby/", '') end |
#install ⇒ Object
50 51 52 53 54 |
# File 'lib/apprunway.rb', line 50 def install system "mkdir -p #{dir.chomp('jruby/')}" system "git clone git://github.com/jruby/jruby.git #{dir}" system "rake -f #{dir}Rakefile build" end |