class CommandsExecutor

Public Instance Methods

execute(commands) click to toggle source
# File lib/bidding/commands_executor.rb, line 4
def execute(commands)
  commands["commands"].each {|c|
    co = Command.parse(c, commands["user"], DateTime.now)
    co.execute()
  }
  Bidding.log_commands commands
  return true
rescue Exception
  p 'EXCEPTION'
  p $!.to_s
  p $!.backtrace
  return false
end