Class: Command::AmbariServiceConfApply
- Inherits:
-
AmbariClusterCommand
- Object
- BasicCommand
- AmbariCommand
- AmbariClusterCommand
- Command::AmbariServiceConfApply
- Defined in:
- lib/command/ambari_service_conf_apply.rb
Overview
Command used to apply a configuration on a ambari cluster.
Instance Attribute Summary
Attributes inherited from AmbariClusterCommand
Attributes inherited from BasicCommand
Instance Method Summary collapse
-
#exec ⇒ Object
The execution of the command.
-
#initialize(cluster_name, type_conf_name, tag_conf_name) ⇒ AmbariServiceConfApply
constructor
private
Default constructor.
Constructor Details
#initialize(cluster_name, type_conf_name, tag_conf_name) ⇒ AmbariServiceConfApply (private)
Default constructor.
16 17 18 19 20 21 |
# File 'lib/command/ambari_service_conf_apply.rb', line 16 def initialize(cluster_name, type_conf_name, tag_conf_name) super(cluster_name) @logger.info("Command::AmbariServiceConfApply initialize the parameters...") @type_conf_name = type_conf_name @tag_conf_name = tag_conf_name end |
Instance Method Details
#exec ⇒ Object
The execution of the command.
26 27 28 |
# File 'lib/command/ambari_service_conf_apply.rb', line 26 def exec() receiver.apply_configuration(@cluster_name, @type_conf_name, @tag_conf_name) end |