class Chef::Knife::Cloud::OraclecloudImageList
Public Instance Methods
before_exec_command()
click to toggle source
# File lib/chef/knife/oraclecloud_image_list.rb, line 36 def before_exec_command @columns_with_info = [ { label: 'Image Name', key: 'name' }, { label: 'Description', key: 'description' } ] @sort_by_field = 'name' end
format_status_value(status)
click to toggle source
# File lib/chef/knife/oraclecloud_image_list.rb, line 49 def format_status_value(status) status = status.downcase status_color = case status when 'ready' :green when 'stopped' :red else :yellow end ui.color(status, status_color) end
query_resource()
click to toggle source
# File lib/chef/knife/oraclecloud_image_list.rb, line 45 def query_resource service.list_images end