Class: Command::ClusterDelete
- Inherits:
-
CrowbarVclusterCommand
- Object
- BasicCommand
- CrowbarCommand
- CrowbarVclusterCommand
- Command::ClusterDelete
- Defined in:
- lib/command/cluster_delete.rb
Overview
Allows to delete a cluster
Instance Attribute Summary collapse
-
#vcluster_name ⇒ Object
readonly
Returns the value of attribute vcluster_name.
Attributes inherited from BasicCommand
Instance Method Summary collapse
-
#exec ⇒ Object
method who call crowbar_receiver for delete a cluster.
-
#initialize(vcluster_name) ⇒ ClusterDelete
constructor
Default constructor.
Constructor Details
#initialize(vcluster_name) ⇒ ClusterDelete
Default constructor.
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_name ⇒ Object (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
#exec ⇒ Object
method who call crowbar_receiver for delete a cluster
26 27 28 |
# File 'lib/command/cluster_delete.rb', line 26 def exec() return @receiver.(@cluster_name) end |