Module: XenComputeHelper
- Defined in:
- app/helpers/xen_compute_helper.rb
Instance Method Summary collapse
Instance Method Details
#compute_attribute_map(params, compute_resource, new) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'app/helpers/xen_compute_helper.rb', line 2 def compute_attribute_map(params, compute_resource, new) if controller_name == 'hosts' attribute_map = hosts_controller_compute_attribute_map(params, compute_resource, new) elsif controller_name == 'compute_attributes' attribute_map = compute_resource_controller_attribute_map(params, compute_resource) end attribute_map end |
#init_vmdata ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/helpers/xen_compute_helper.rb', line 11 def init_vmdata vmdata = { :ifs => { '0' => { :ip => '', :gateway => '', :netmask => '' } }, :nameserver1 => '', :nameserver2 => '', :environment => '' } end |