class Rushour::CLI
Public Instance Methods
host()
click to toggle source
# File lib/rushour/cli.rb, line 17 def host init_settings tm = Rushour::TimeManager.new ottd = Rushour::ServerProcess.new ottd.start tm.on_start { || ottd.unpause } tm.on_finish { || ottd.pause } begin while (true) tm.check end rescue SystemExit, Interrupt puts 'SHUTTING RUSHOUR DOWN' end ottd.stop end
settings()
click to toggle source
# File lib/rushour/cli.rb, line 39 def settings init_settings puts Rushour::Settings.to_hash end
Private Instance Methods
init_settings()
click to toggle source
# File lib/rushour/cli.rb, line 46 def init_settings Rushour::Settings.merge!(options) end