Class: Stax::Cmd::Firehose
- Inherits:
-
SubCommand
- Object
- Thor
- Base
- SubCommand
- Stax::Cmd::Firehose
- 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
#ls ⇒ Object
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., f.delivery_stream_type] } end |