Class: Command::AmbariGetClusterConfiguration

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

Overview

Command used to get the configurations of an ambari cluster.

Author:

  • aboudot

Instance Attribute Summary collapse

Attributes inherited from AmbariClusterCommand

#cluster_name

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Constructor Details

#initialize(clustername, type, tag) ⇒ AmbariGetClusterConfiguration

The execution of the command.

Author:

  • aboudot



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

#tagObject (private)

Returns the value of attribute tag.



13
14
15
# File 'lib/command/ambari_get_cluster_configuration.rb', line 13

def tag
  @tag
end

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

#execObject



24
25
26
# File 'lib/command/ambari_get_cluster_configuration.rb', line 24

def exec()
  @receiver.get_cluster_configuration(@cluster_name ,@type , @tag )
end