Class: Command::AmbariGetClusterConfiguration
- Inherits:
-
AmbariClusterCommand
- Object
- BasicCommand
- AmbariCommand
- AmbariClusterCommand
- Command::AmbariGetClusterConfiguration
- Defined in:
- lib/command/ambari_get_cluster_configuration.rb
Overview
Command used to get the configurations of an ambari cluster.
Instance Attribute Summary collapse
-
#tag ⇒ Object
private
Returns the value of attribute tag.
-
#type ⇒ Object
private
Returns the value of attribute type.
Attributes inherited from AmbariClusterCommand
Attributes inherited from BasicCommand
Instance Method Summary collapse
- #exec ⇒ Object
-
#initialize(clustername, type, tag) ⇒ AmbariGetClusterConfiguration
constructor
The execution of the command.
Constructor Details
#initialize(clustername, type, tag) ⇒ AmbariGetClusterConfiguration
The execution of the command.
17 18 19 20 21 22 23 |
# File 'lib/command/ambari_get_cluster_configuration.rb', line 17 def initialize(clustername, type,tag) super(clustername) @logger.info("Command::AmbariGetClusterConfiguration initialize the parameters...") @type=type @tag=tag end |
Instance Attribute Details
#tag ⇒ Object (private)
Returns the value of attribute tag.
13 14 15 |
# File 'lib/command/ambari_get_cluster_configuration.rb', line 13 def tag @tag end |
#type ⇒ Object (private)
Returns the value of attribute type.
12 13 14 |
# File 'lib/command/ambari_get_cluster_configuration.rb', line 12 def type @type end |
Instance Method Details
#exec ⇒ Object
24 25 26 |
# File 'lib/command/ambari_get_cluster_configuration.rb', line 24 def exec() @receiver.get_cluster_configuration(@cluster_name ,@type , @tag ) end |