class Chef::Knife::Cloud::OraclecloudShapeList

Public Instance Methods

before_exec_command() click to toggle source
# File lib/chef/knife/oraclecloud_shape_list.rb, line 36
def before_exec_command
  @columns_with_info = [
    { label: 'Shape Name', key: 'name' },
    { label: 'CPUs',       key: 'cpus' },
    { label: 'RAM',        key: 'ram' },
    { label: 'I/O',        key: 'io' }
  ]

  @sort_by_field = 'name'
end
query_resource() click to toggle source
# File lib/chef/knife/oraclecloud_shape_list.rb, line 47
def query_resource
  service.list_shapes
end