Module: CodeRunner::InteractiveMethods

Defined in:
lib/cronoscrmod/cronos.rb

Instance Method Summary collapse

Instance Method Details

#cronos(*args) ⇒ Object



38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/cronoscrmod/cronos.rb', line 38

def cronos(*args)
  if args.size > 0
    args.each do |com|
      begin
        CodeRunner::Cronos.rcp.engine_handler.cronos.puts(com)
      rescue Errno::EPIPE
        CodeRunner::Cronos.rcp.engine_handler.restart_cronos(@r.executable.sub(/cronos$/, ""))
        retry
      end
    end
  end
end