lib/chef/knife/vcenter_host_list.rb
def before_exec_command
          @columns_with_info = [
            { label: "ID",    key: "host" },
            { label: "Name",  key: "name" },
            { label: "Power State", key: "power_state", value_callback: method(:format_power_status) },
            { label: "Connection State", key: "connection_state" },
          ]

          @sort_by_field = "name"
        end
# Sets up the columns for listing out and sorts by name
#
Sets up the columns for listing out and sorts by name
Sets up the columns for listing out and sorts by name
def before_exec_command
          @columns_with_info = [
            { label: "ID",    key: "host" },
            { label: "Name",  key: "name" },
            { label: "Power State", key: "power_state", value_callback: method(:format_power_status) },
            { label: "Connection State", key: "connection_state" },
          ]
          @sort_by_field = "name"
        end
def before_exec_command @columns_with_info = [ { label : "ID" , key : "host" } , { label : "Name" , key : "name" } , { label : "Power State" , key : "power_state" , value_callback : method ( :format_power_status ) } , { label : "Connection State" , key : "connection_state" } , ] @sort_by_field = "name" end
Sets up the columns for listing out and sorts by name
Sets up the columns for listing out and sorts by name