Module: Apprunway::JRuby

Extended by:
JRuby
Included in:
JRuby
Defined in:
lib/apprunway.rb

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

#compileObject



46
47
48
# File 'lib/apprunway.rb', line 46

def compile
  cmd "-S warble"
end

#dirObject



38
39
40
# File 'lib/apprunway.rb', line 38

def dir
  File.join("./vendor/jruby/", '')
end

#installObject



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