Class: Chef::Knife::Cloud::OraclecloudShapeList
Instance Method Summary
collapse
included
#check_for_missing_config_values!, #create_service_instance, #verify_ssl?
Instance Method Details
#before_exec_command ⇒ Object
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_resource ⇒ Object
47
48
49
|
# File 'lib/chef/knife/oraclecloud_shape_list.rb', line 47
def query_resource
service.list_shapes
end
|