Class: Command::AmbariServiceConfApply

Inherits:
AmbariClusterCommand show all
Defined in:
lib/command/ambari_service_conf_apply.rb

Overview

Command used to apply a configuration on a ambari cluster.

Author:

  • mbretaud

Instance Attribute Summary

Attributes inherited from AmbariClusterCommand

#cluster_name

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Constructor Details

#initialize(cluster_name, type_conf_name, tag_conf_name) ⇒ AmbariServiceConfApply (private)

Default constructor.

Author:

  • mbretaud



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

#execObject

The execution of the command.

Author:

  • mbretaud



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