Class: Command::AmbariServiceAdd
- Inherits:
-
AmbariClusterServiceCommand
- Object
- BasicCommand
- AmbariCommand
- AmbariClusterCommand
- AmbariClusterServiceCommand
- Command::AmbariServiceAdd
- Defined in:
- lib/command/ambari_service_add.rb
Overview
# Command used to get information on a cluster’s ambari service.
Instance Attribute Summary
Attributes inherited from AmbariClusterServiceCommand
Attributes inherited from AmbariClusterCommand
Attributes inherited from BasicCommand
Instance Method Summary collapse
-
#exec ⇒ Object
The execution of the command.
Methods inherited from AmbariClusterServiceCommand
Methods inherited from AmbariClusterCommand
Methods inherited from AmbariCommand
Methods inherited from BasicCommand
Constructor Details
This class inherits a constructor from Command::AmbariClusterServiceCommand
Instance Method Details
#exec ⇒ Object
The execution of the command.
19 20 21 22 23 24 |
# File 'lib/command/ambari_service_add.rb', line 19 def exec() @receiver.define_service(@cluster_name, @service_name) Common::ServicesDescription.get_components(@service_name).each do |component_name| @receiver.add_service_component(cluster_name, service_name, component_name) end end |