Class: Command::NodeInfo

Inherits:
CrowbarNodeCommand show all
Defined in:
lib/command/node_info.rb

Overview

Allows to display a information ‘s node

Instance Attribute Summary collapse

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

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

#nodeNameObject (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

#execObject



21
22
23
# File 'lib/command/node_info.rb', line 21

def exec()
  return @receiver.crowbar_node_info(@nodeName)
end