Module: InteractiveEditor::Exec::Java

Defined in:
lib/interactive_editor.rb

Instance Method Summary collapse

Instance Method Details

#system(file, *args) ⇒ Object



73
74
75
76
77
78
# File 'lib/interactive_editor.rb', line 73

def system(file, *args)
  require 'spoon'
  Process.waitpid(Spoon.spawnp(file, *args))
rescue Errno::ECHILD => e
  raise "error exec'ing #{file}: #{e}"
end