Class: Command::AmbariClusterComponentCommand Abstract
- Inherits:
-
AmbariClusterCommand
- Object
- BasicCommand
- AmbariCommand
- AmbariClusterCommand
- Command::AmbariClusterComponentCommand
- Defined in:
- lib/command/ambari_cluster_component_command.rb
Overview
This class is abstract.
Subclass and override BasicCommand#exec to implement
Class for all ambari command.
Direct Known Subclasses
AmbariClusterComponentHostCommand, AmbariInstallComponent, AmbariStartComponent, AmbariStopComponent
Instance Attribute Summary collapse
-
#component_name ⇒ Object
The component name.
Attributes inherited from AmbariClusterCommand
Attributes inherited from BasicCommand
Instance Method Summary collapse
-
#initialize(cluster_name, component_name) ⇒ AmbariClusterComponentCommand
constructor
private
Default constructor.
Methods inherited from BasicCommand
Constructor Details
#initialize(cluster_name, component_name) ⇒ AmbariClusterComponentCommand (private)
Default constructor.
19 20 21 22 23 |
# File 'lib/command/ambari_cluster_component_command.rb', line 19 def initialize(cluster_name, component_name) super(cluster_name) @logger.info("Command::AmbariClusterComponentCommand initialize the parameters...") @component_name = component_name end |
Instance Attribute Details
#component_name ⇒ Object
The component name
14 15 16 |
# File 'lib/command/ambari_cluster_component_command.rb', line 14 def component_name @component_name end |