Class: Exec::ClusterDesallocate
- Inherits:
-
ExecutableCommand
- Object
- ExecutableCommand
- Exec::ClusterDesallocate
- Defined in:
- lib/exec/cluster_desallocate.rb
Overview
Allows the user to desallocate a cluster
Instance Attribute Summary
Attributes inherited from ExecutableCommand
#argv, #command_name, #logger, #options, #stderr, #stdin, #stdout, #values
Instance Method Summary collapse
-
#exec ⇒ Object
private
The execution of the command.
-
#set_options ⇒ Object
private
Parse and check the parameters of the function.
Methods inherited from ExecutableCommand
#check_parameters, #create_logger, #initialize, #run
Constructor Details
This class inherits a constructor from Exec::ExecutableCommand
Instance Method Details
#exec ⇒ Object (private)
TODO:
Implement ClusterDesallocate Exec body
The execution of the command.
30 31 32 33 34 35 |
# File 'lib/exec/cluster_desallocate.rb', line 30 def exec Color::print_log("NONE", "Desallocate cluster...", @stdout) Color::echo_fail(@stdout) raise ClusterDesallocateError.new("Not implemented command...") end |
#set_options ⇒ Object (private)
Parse and check the parameters of the function.
21 22 23 24 25 |
# File 'lib/exec/cluster_desallocate.rb', line 21 def .add_option("a", "all", "All nodes which are in the cluster .", false) .add_option("C", "cluster_name", "The name of the vcluster .", true, true, method(:check_cluster_name)) .add_option("m", "node_name", "The list of nodes.", false, true, method(:check_crowbar_node_name)) end |