Class: Awsm::Table::Instance

Inherits:
Awsm::TableBase show all
Defined in:
lib/awsm/table/instance.rb

Instance Method Summary collapse

Methods inherited from Awsm::TableBase

#initialize, #print

Constructor Details

This class inherits a constructor from Awsm::TableBase

Instance Method Details

#configObject



29
30
31
# File 'lib/awsm/table/instance.rb', line 29

def config
  Awsm::table_config( :instance )
end

#defaultFieldsObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/awsm/table/instance.rb', line 17

def defaultFields
  {
    instance_id: -> (i) { i.instance_id },
    name: -> (i) { tag( 'Name', i.tags ).first },
    state: -> (i) { i.state.name },
    image_id: -> (i) { i.image_id },
    launch_time: -> (i) { i.launch_time },
    private_ip: -> (i) { i.private_ip_address },
    awsm_owner: -> (i) { tag( 'awsm:owner', i.tags ).first }
  }
end

#defaultHeadingsObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/awsm/table/instance.rb', line 5

def defaultHeadings
  {
    instance_id: 'Instance ID',
    name: 'Name',
    state: 'State',
    image_id: 'Image ID',
    launch_time: 'Launch Time',
    private_ip: 'Private IP',
    awsm_owner: 'Owner'
  }
end