Method: Aruba::CommandMonitor#initialize

Defined in:
lib/aruba/platforms/command_monitor.rb

#initialize(opts = {}) ⇒ CommandMonitor

Returns a new instance of CommandMonitor.



45
46
47
48
49
50
51
52
53
# File 'lib/aruba/platforms/command_monitor.rb', line 45

def initialize(opts = {})
  @registered_commands = []
  @announcer = opts.fetch(:announcer)

  @last_command_stopped = DefaultLastCommandStopped.new
  @last_command_started = DefaultLastCommandStarted.new
rescue KeyError => e
  raise ArgumentError, e.message
end