Class: Command::ClusterDelete

Inherits:
CrowbarVclusterCommand show all
Defined in:
lib/command/cluster_delete.rb

Overview

Allows to delete a cluster

Instance Attribute Summary collapse

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Constructor Details

#initialize(vcluster_name) ⇒ ClusterDelete

Default constructor.

Parameters:

  • vcluster_name (String)

    The cluster name.

Author:

  • mbretaud



18
19
20
21
22
# File 'lib/command/cluster_delete.rb', line 18

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

Instance Attribute Details

#vcluster_nameObject (readonly)

Returns the value of attribute vcluster_name.



12
13
14
# File 'lib/command/cluster_delete.rb', line 12

def vcluster_name
  @vcluster_name
end

Instance Method Details

#execObject

method who call crowbar_receiver for delete a cluster



26
27
28
# File 'lib/command/cluster_delete.rb', line 26

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