module Chef::Knife::VcNetworkCommon

Public Instance Methods

get_network(network_arg) click to toggle source
# File lib/chef/knife/common/vc_network_common.rb, line 22
def get_network(network_arg)
  network = nil
  org_name = locate_org_option

  org = connection.get_organization_by_name org_name
  network = connection.get_network_by_name org, network_arg

  raise ArgumentError, "Network #{network_arg} not found" unless network
  network
end