class BotMob::Command
This class handles all the `mob` command line interactions
Public Class Methods
new()
click to toggle source
# File lib/bot_mob/command.rb, line 8 def initialize # parse_options! end
Public Instance Methods
handle(argv)
click to toggle source
# File lib/bot_mob/command.rb, line 12 def handle(argv) case argv[0].to_s.to_sym when :server then BotMob::Server.run!(@options || {}) when :console then system("#{__dir__}/../../bin/console") else puts 'Usage: mob server [options]' end end