Class: OneVNTemplateHelper

Inherits:
OneTemplateHelper show all
Defined in:
lib/one_helper/onevntemplate_helper.rb

Overview

Helper class for VNTemplate commands

Constant Summary collapse

VN_NAME =
{
    :name  => 'name',
    :large => '--name name',
    :format => String,
    :description =>  <<~EOT.strip
        Name of the new VN TEMPLATE. When instantiating
                                       multiple VNs you can use the \"%i\" wildcard to produce
                                       different names such as vm-0, vm-1...
    EOT
}
MULTIPLE =
{
    :name  => 'multiple',
    :short => '-m x',
    :large => '--multiple x',
    :format => Integer,
    :description => 'Instance multiple VNs'
}
EXTENDED =
{
    :name => 'extended',
    :large => '--extended',
    :description => 'Process the template and included extended '+
                    'information'
}
INT_EXP =
/^-?\d+$/
FLOAT_EXP =
/^-?\d+(\.\d+)?$/

Constants inherited from OneTemplateHelper

OneTemplateHelper::PERSISTENT, OneTemplateHelper::RECURSIVE, OneTemplateHelper::VM_NAME

Instance Attribute Summary

Attributes inherited from OpenNebulaHelper::OneHelper

#client

Class Method Summary collapse

Methods inherited from OneTemplateHelper

#format_pool, get_user_inputs, #show_resource

Methods inherited from OpenNebulaHelper::OneHelper

#backup_mode_valid?, #check_orphan, client, #create_resource, #filterflag_to_i, filterflag_to_i_desc, get_client, get_password, #group_name, #initialize, list_layout_help, #list_pool, #list_pool_format, #list_pool_table, #list_pool_top, #list_pool_xml, #list_to_id, list_to_id_desc, name_to_id, #perform_action, #perform_actions, #print_page, #retrieve_resource, #set_client, set_endpoint, set_password, set_user, #show_resource, #start_pager, #stop_pager, table_conf, template_input_help, #to_id, to_id_desc, #user_name

Constructor Details

This class inherits a constructor from OpenNebulaHelper::OneHelper

Class Method Details

.conf_fileObject



55
56
57
# File 'lib/one_helper/onevntemplate_helper.rb', line 55

def self.conf_file
    'onevntemplate.yaml'
end

.rnameObject



51
52
53
# File 'lib/one_helper/onevntemplate_helper.rb', line 51

def self.rname
    'VNTEMPLATE'
end