Module: InteractiveEditor::Exec::Java

Defined in:
lib/console_editor.rb

Instance Method Summary collapse

Instance Method Details

#system(file, *args) ⇒ Object



48
49
50
51
52
53
# File 'lib/console_editor.rb', line 48

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