Method: Runfile::Runner#execute

Defined in:
lib/runfile/runner.rb

#execute(argv, filename = 'Runfile') ⇒ Object

Load and execute a Runfile call.



38
39
40
41
42
43
44
45
46
# File 'lib/runfile/runner.rb', line 38

def execute(argv, filename='Runfile')
  filename and File.file?(filename) or handle_no_runfile argv
  begin
    load filename
  rescue => ex
    abort "Runfile error:\n#{ex.message}\n#{ex.backtrace[0]}"
  end
  @@instance.run *argv
end