class BinnacleCommand
Public Instance Methods
run(args)
click to toggle source
# File lib/binnacle/commands/commands.rb, line 6 def run(args) ARGV.push(*args) if ENV["TEST_MODE"] == 'true' # testing cheat subcommand = args[0].downcase.to_sym if args[0] begin if subcommand Binnacle::Commands.send(subcommand) else Binnacle::Commands.send('help') end rescue NoMethodError => nme puts "I don't know the subcommand command '#{subcommand}'" end end