Class: Command::AmbariServiceConfLs

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

Overview

Command used to get configuration about 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) ⇒ AmbariServiceConfLs (private)

Default constructor.

Author:

  • mbretaud



16
17
18
19
# File 'lib/command/ambari_service_conf_ls.rb', line 16

def initialize(cluster_name)
  super(cluster_name)
  @logger.info("Command::AmbariServiceConfLs   initialize the parameters...")
end

Instance Method Details

#execHash

The execution of the command.

Returns:

  • (Hash)

    The pieces of configurations of the cluster.

Author:

  • mbretaud



25
26
27
# File 'lib/command/ambari_service_conf_ls.rb', line 25

def exec()
  return receiver.get_cluster_configurations_list(@cluster_name)
end