class Chef::Knife::BmcsShapeList
List available shapes
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/bmcs_shape_list.rb, line 32 def run options = {} options[:availability_domain] = config[:availability_domain] if config[:availability_domain] options[:image_id] = config[:image_id] if config[:image_id] options[:limit] = config[:limit] if config[:limit] response = compute_client.list_shapes(compartment_id, options) display_list(response, []) do |item, list| [item.shape] unless list.include? item.shape end end