class Chef::Knife::Cloud::OpenstackNetworkList
Public Instance Methods
before_exec_command()
click to toggle source
# File lib/chef/knife/openstack_network_list.rb, line 32 def before_exec_command # set columns_with_info map @columns_with_info = [ { label: "Name", key: "name" }, { label: "ID", key: "id" }, { label: "Tenant", key: "tenant_id" }, { label: "Shared", key: "shared" }, ] @sort_by_field = "name" end
query_resource()
click to toggle source
# File lib/chef/knife/openstack_network_list.rb, line 43 def query_resource @service.list_networks end