Class: Chef::Knife::BmcsAdList

Inherits:
Chef::Knife show all
Includes:
BmcsCommonOptions, BmcsHelper
Defined in:
lib/chef/knife/bmcs_ad_list.rb

Overview

List availability domains

Instance Method Summary collapse

Methods included from BmcsCommonOptions

included

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

#runObject



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