class Chef::Knife::BmcsServerList
List BMCS instances. Note that this lists all instances in a compartment, not just those that are set up as Chef
nodes.
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/bmcs_server_list.rb, line 25 def run options = {} options[:limit] = config[:limit] if config[:limit] response = compute_client.list_instances(compartment_id, options) display_list(response, ['Display Name', 'State', 'ID']) do |item| [item.display_name, item.lifecycle_state, item.id] end end