Class: Command::CrowbarCommand

Inherits:
BasicCommand show all
Defined in:
lib/command/crowbar_command.rb

Overview

This class implement a BasicCommand. It essentially constrain the receiver to be a CrowbarReceiver.

Author:

  • aboudot

Instance Attribute Summary

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Constructor Details

#initialize(logger = nil) ⇒ CrowbarCommand (private)

Returns a new instance of CrowbarCommand.



17
18
19
20
# File 'lib/command/crowbar_command.rb', line 17

def initialize(logger = nil)
  super(Receiver::CrowbarReceiver.new(logger), logger)
  @logger.info("Command::CrowbarCommand   initialize the parameters...")
end

Instance Method Details

#execObject

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/command/crowbar_command.rb', line 25

def exec()
  raise NotImplementedError
end