Class: Jets::Command::StacksCommand
- Defined in:
- lib/jets/commands/stacks/stacks_command.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from Base
banner, base_name, command_name, default_command_root, desc, engine?, executable, exit_on_failure?, #help, hide_command!, inherited, long_desc, namespace, perform, printing_commands, usage_path
Methods included from ApiHelpers
#check_for_error_message!, #no_token_exit!, #paging_params
Methods included from AwsHelpers
Methods included from AwsServices
#apigateway, #aws_lambda, #aws_options, #cfn, #dynamodb, #logs, #s3, #s3_resource, #sns, #sqs, #sts
Methods included from AwsServices::StackStatus
#lookup, #stack_exists?, #stack_in_progress?
Methods included from AwsServices::GlobalMemoist
Methods included from Actions
#load_generators, #load_tasks, #require_application!, #require_application_and_environment!, #set_application_directory!
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/jets/commands/stacks/stacks_command.rb', line 7 def perform name = Jets.project_name no_token_exit! params = paging_params.merge() resp = Jets::Api::Stack.list(params) (resp) data = resp["data"] if data.empty? $stderr.puts "No stacks deployed yet: #{name}" else = if [:all_projects] "Stacks for all projects:" else "Stacks for project: #{name}" end $stderr.puts show_items(data) end rescue Jets::Api::RequestError => e puts "WARNING: Unable to list stacks. #{e.class}: #{e.}" end |