Method: EcsCmd::Service#overview_table

Defined in:
lib/ecs_cmd/service.rb

#overview_tableObject



149
150
151
152
153
154
155
156
157
# File 'lib/ecs_cmd/service.rb', line 149

def overview_table
  row1 = []
  row1 << [name, status, running_count, desired_count, pending_count,
           deployment_configuration['maximum_percent'], deployment_configuration['minimum_healthy_percent']]
  table1 = Terminal::Table.new headings: ['NAME', 'STATUS', 'RUNNING COUNT',
                                          'DESIRED COUNT', 'PENDING COUNT',
                                          'MAX HEALTHY', 'MIN HEALTHY'], rows: row1
  table1
end