Class: Command::AmbariServiceList

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

Overview

Command used to get the list of the ambari services of a cluster.

Instance Attribute Summary

Attributes inherited from AmbariClusterCommand

#cluster_name

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Methods inherited from AmbariClusterCommand

#initialize

Methods inherited from AmbariCommand

#initialize

Methods inherited from BasicCommand

#initialize

Constructor Details

This class inherits a constructor from Command::AmbariClusterCommand

Instance Method Details

#execHash

The execution of the command.

Parameters:

  • cluster_name

    The name of the cluster.

Returns:

  • (Hash)

    The list of services.



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

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