lib/chef/knife/vcenter_vm_list.rb
def format_power_status(status)
          status_color = case status
                         when "POWERED_OFF"
                           :red
                         when "POWERED_ON"
                           :green
                         when "SUSPENDED"
                           :yellow
                         end

          ui.color(status, status_color)
        end
# Sets the color for the different status of the machines
#
Sets the color for the different status of the machines
Sets the color for the different status of the machines
def format_power_status(status)
          status_color = case status
                         when "POWERED_OFF"
                           :red
                         when "POWERED_ON"
                           :green
                         when "SUSPENDED"
                           :yellow
                         end
          ui.color(status, status_color)
        end
def format_power_status ( status ) status_color = case status when "POWERED_OFF" :red when "POWERED_ON" :green when "SUSPENDED" :yellow end ui . color ( status , status_color ) end
Sets the color for the different status of the machines
Sets the color for the different status of the machines
status