Class: Awful::ApiGateway::Stages
- Defined in:
- lib/awful/api_gateway_stages.rb
Instance Method Summary collapse
Methods inherited from Cli
Constructor Details
This class inherits a constructor from Awful::Cli
Instance Method Details
#ls(id, deployment = nil) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/awful/api_gateway_stages.rb', line 13 def ls(id, deployment = nil) api_gateway.get_stages(rest_api_id: id, deployment_id: deployment).item.output do |items| if [:long] print_table items.map { |i| [i.stage_name, i.deployment_id, i.last_updated_date, i.description] }.sort else puts items.map(&:stage_name).sort end end end |