Class: Chef::Knife::XapiGuestStart
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::XapiGuestStart
- Includes:
- XapiBase, XapiVmSelect
- Defined in:
- lib/chef/knife/xapi_guest_start.rb
Instance Attribute Summary
Attributes included from XapiBase
Instance Method Summary collapse
Methods included from XapiVmSelect
Methods included from XapiBase
#add_vif_by_name, #cleanup, #clear_vm_vifs, #color_kv, #create_vbd, #create_vdi, defaults, #destroy_vdi, #detach_vdi, #fail, #find_default_sr, #find_template, #generate_mac, #get_all_vdis, get_default, #get_guest_ip, #get_host_ref, #get_sr_by_name, #get_task_ref, #get_template, #get_vbd_by_uuid, #get_vbds_from_vdi, #get_vdi_by_name_label, #get_vdi_by_uuid, #h, included, #input_to_bytes, #locate_config_value, #print_vdi_info, set_defaults, #start, #stop, #user_select, #wait_on_task, #xapi, #yes_no?
Instance Method Details
#run ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/chef/knife/xapi_guest_start.rb', line 33 def run vm = select_vm(@name_args[0]) if vm.is_a? Array vm.each { |vm| start(vm) } else start(vm) end end |