Class: Chef::Knife::OvmcliServerpoolList
- Inherits:
-
BaseOraclevmCommand
- Object
- Chef::Knife
- BaseOraclevmCommand
- Chef::Knife::OvmcliServerpoolList
- Defined in:
- lib/chef/knife/ovmcli_serverpool_list.rb
Overview
list a server pool
Instance Method Summary collapse
Methods inherited from BaseOraclevmCommand
#add_vdisk, #add_vnic, #clone_vm, #create_vdisk, #delete_vdisk, #delete_vm, #edit_vm, #fatal_exit, #get_cli_connection, get_common_options, #get_config, #get_host, #get_password, #get_vm, #kill_vm, #list_serverpool, #list_tag, #list_vm, #migrate_vm, #remove_vdisk, #restart_vm, #resume_vm, #send_message, #show_vm_status, #start_vm, #stop_vm, #suspend_vm, #tcp_test_port
Instance Method Details
#run ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/chef/knife/ovmcli_serverpool_list.rb', line 18 def run $stdout.sync = true pool = @name_args[0] current=list_serverpool(pool) Chef::Log.debug("Status = #{current[:status]}. Time = #{current[:time]}. VM Status = #{current[:poolstatus]}.") if current[:status]!="Success" puts "Call to OVM CLI Failed with #{current[:errormsg]}" end end |