Sha256: 05fb853e9e3c7e4d1aeaa1700d00fb4e702e70993aa6c3e8c2a1f2bcc2b4bf22
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'run') app = Roby.app robot_name = ARGV.shift app.robot robot_name, (ARGV.shift || robot_name) app.setup begin app.run do # Load the controller include Roby Roby.execute do begin controller_file = File.join(APP_DIR, "controllers", "#{app.robot_name}.rb") if File.readable?(controller_file) Robot.info "loading controller file #{controller_file}" load controller_file end Robot.info "done initialization" rescue Interrupt end end end rescue Interrupt Roby.fatal "interrupted" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
roby-0.7.2 | lib/roby/app/scripts/run.rb |
roby-0.7.1 | lib/roby/app/scripts/run.rb |
roby-0.7 | lib/roby/app/scripts/run.rb |