Class: Stax::Cmd::Firehose

Inherits:
SubCommand show all
Defined in:
lib/stax/mixin/firehose.rb

Constant Summary collapse

COLORS =
{
  ACTIVE:   :green,
  CREATING: :yellow,
  DELETING: :red,
}

Instance Method Summary collapse

Methods inherited from SubCommand

#info, stax_info, stax_info_tasks

Instance Method Details

#lsObject



25
26
27
28
29
30
# File 'lib/stax/mixin/firehose.rb', line 25

def ls
  print_table my.stack_firehoses.map { |r|
    f = Aws::Firehose.describe(r.physical_resource_id)
    [f.delivery_stream_name, color(f.delivery_stream_status, COLORS), f.create_timestamp, f.delivery_stream_type]
  }
end