Class: Chef::Knife::BmcsAdList
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::BmcsAdList
- Includes:
- BmcsCommonOptions, BmcsHelper
- Defined in:
- lib/chef/knife/bmcs_ad_list.rb
Overview
List availability domains
Instance Method Summary collapse
Methods included from BmcsCommonOptions
Methods included from BmcsHelper
#bmcs_config, #check_can_access_instance, #compartment_id, #compute_client, #confirm, #display_list, #display_server_info, #error_and_exit, #identity_client, #network_client, #show_value, #validate_required_params, #warn_if_page_is_truncated
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/chef/knife/bmcs_ad_list.rb', line 20 def run response = identity_client.list_availability_domains(compartment_id) display_list(response, []) do |item| [item.name] end end |