Class: Command::NodeInfo
- Inherits:
-
CrowbarNodeCommand
- Object
- BasicCommand
- CrowbarCommand
- CrowbarNodeCommand
- Command::NodeInfo
- Defined in:
- lib/command/node_info.rb
Overview
Allows to display a information ‘s node
Instance Attribute Summary collapse
-
#nodeName ⇒ Object
readonly
Returns the value of attribute nodeName.
Attributes inherited from BasicCommand
Instance Method Summary collapse
- #exec ⇒ Object
-
#initialize(nodeName) ⇒ NodeInfo
constructor
A new instance of NodeInfo.
Constructor Details
#initialize(nodeName) ⇒ NodeInfo
Returns a new instance of NodeInfo.
15 16 17 18 19 |
# File 'lib/command/node_info.rb', line 15 def initialize(nodeName) super() @logger.info("Command::NodeInfo initialize the parameters...") @nodeName = nodeName end |
Instance Attribute Details
#nodeName ⇒ Object (readonly)
Returns the value of attribute nodeName.
13 14 15 |
# File 'lib/command/node_info.rb', line 13 def nodeName @nodeName end |
Instance Method Details
#exec ⇒ Object
21 22 23 |
# File 'lib/command/node_info.rb', line 21 def exec() return @receiver.(@nodeName) end |