Class: Command::AmbariServiceInfo

Inherits:
AmbariClusterServiceCommand show all
Defined in:
lib/command/ambari_service_info.rb

Overview

# Command used to get information on a cluster’s ambari service.

Author:

  • tnoguer

Instance Attribute Summary

Attributes inherited from AmbariClusterServiceCommand

#service_name

Attributes inherited from AmbariClusterCommand

#cluster_name

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Methods inherited from AmbariClusterServiceCommand

#initialize

Methods inherited from AmbariClusterCommand

#initialize

Methods inherited from AmbariCommand

#initialize

Methods inherited from BasicCommand

#initialize

Constructor Details

This class inherits a constructor from Command::AmbariClusterServiceCommand

Instance Method Details

#execHash

The execution of the command.

Returns:

  • (Hash)

    The pieces of information of the service.

Author:

  • tnoguer



15
16
17
# File 'lib/command/ambari_service_info.rb', line 15

def exec()
  return receiver.show_service(@cluster_name, @service_name)
end