Class: Command::CrowbarNodeList
- Inherits:
-
CrowbarCommand
- Object
- BasicCommand
- CrowbarCommand
- Command::CrowbarNodeList
- Defined in:
- lib/command/crowbar_node_list.rb
Overview
CrowbarCommand implementation for list Crowbar nodes.
Instance Attribute Summary collapse
-
#state_filter ⇒ Object
readonly
Returns the value of attribute state_filter.
Attributes inherited from BasicCommand
Instance Method Summary collapse
-
#exec ⇒ Object
Run the command on receiver.
-
#initialize(logger, state = nil) ⇒ CrowbarNodeList
constructor
Default constructor.
Constructor Details
#initialize(logger, state = nil) ⇒ CrowbarNodeList
Default constructor
25 26 27 28 29 |
# File 'lib/command/crowbar_node_list.rb', line 25 def initialize(logger, state = nil) super(logger) @logger.info("Command::CrowbarNodeList initialize the parameters...") @state_filter = state end |
Instance Attribute Details
#state_filter ⇒ Object (readonly)
Returns the value of attribute state_filter.
18 19 20 |
# File 'lib/command/crowbar_node_list.rb', line 18 def state_filter @state_filter end |
Instance Method Details
#exec ⇒ Object
Run the command on receiver.
35 36 37 38 |
# File 'lib/command/crowbar_node_list.rb', line 35 def exec() @logger.info("Command::CrowbarNodeList : call the receiver with the function 'crowbar_node_list_nodes(#{@state_filter})'") return @receiver.(@state_filter) end |