class Chef::Knife::BmcsImageList

List available images

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/bmcs_image_list.rb, line 24
def run
  options = {}
  options[:limit] = config[:limit] if config[:limit]

  response = compute_client.list_images(compartment_id, options)

  display_list(response, ['Display Name', 'ID', 'OS', 'OS Version']) do |image|
    [image.display_name, image.id, image.operating_system, image.operating_system_version]
  end
end