Class: Chef::Knife::Cloud::OraclecloudShapeList

Inherits:
ResourceListCommand
  • Object
show all
Includes:
OraclecloudServiceHelpers, OraclecloudServiceOptions
Defined in:
lib/chef/knife/oraclecloud_shape_list.rb

Instance Method Summary collapse

Methods included from OraclecloudServiceOptions

included

Methods included from OraclecloudServiceHelpers

#check_for_missing_config_values!, #create_service_instance, #verify_ssl?

Instance Method Details

#before_exec_commandObject



36
37
38
39
40
41
42
43
44
45
# 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_resourceObject



47
48
49
# File 'lib/chef/knife/oraclecloud_shape_list.rb', line 47

def query_resource
  service.list_shapes
end