Class: Command::AmbariClusterCommand Abstract

Inherits:
AmbariCommand show all
Defined in:
lib/command/ambari_cluster_command.rb

Overview

This class is abstract.

Subclass and override BasicCommand#exec to implement

Class for all ambari command.

Author:

  • tnoguer

Instance Attribute Summary collapse

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Methods inherited from BasicCommand

#exec

Constructor Details

#initialize(cluster_name) ⇒ AmbariClusterCommand (private)

Default constructor.

Author:

  • tnoguer



19
20
21
22
23
# File 'lib/command/ambari_cluster_command.rb', line 19

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

Instance Attribute Details

#cluster_nameObject

The cluster name



14
15
16
# File 'lib/command/ambari_cluster_command.rb', line 14

def cluster_name
  @cluster_name
end