Method: Exec::ClusterCreate#set_options

Defined in:
lib/exec/cluster_create.rb

#set_optionsObject (private)

Parse and check the parameters of the function.

Author:

  • tnoguer



34
35
36
37
38
39
40
41
# File 'lib/exec/cluster_create.rb', line 34

def set_options
  @options.add_option("a", "address", "the adress Network and the cidr of the Cluster.", true, true, method(:check_network_address))
  @options.add_option("C", "cluster", "The name of the vcluster .", true, true, method(:check_cluster_name))
  @options.add_option("c", "cpu_weight", "CPU weight for each node in the virtual cluster .", false, true, method(:check_cpu_weight))
  @options.add_option("d", "description", "Description of the cluster (put quotes).", false, true)
  @options.add_option("i", "vlan_id", "Id VLAN.", false, true, method(:check_vlan_id))
  @options.add_option("r", "ram", "Min ram assigned for each node in the virtual cluster.", false, true, method(:check_ram_size))
end