Class: Jets::CLI::Delete
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #paginate, #paging_params, rescue_api_error
Methods included from Util::Logging
Methods included from AwsServices
#apigateway, #aws_options, #cfn, #codebuild, #dynamodb, #lambda_client, #logs, #s3, #s3_resource, #sns, #sqs, #ssm, #sts, #wafv2
Methods included from AwsServices::StackStatus
Methods included from AwsServices::GlobalMemoist
Methods included from Api
Constructor Details
This class inherits a constructor from Jets::CLI::Base
Instance Method Details
#are_you_sure? ⇒ Boolean
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/jets/cli/delete.rb', line 9 def are_you_sure? stack_name = Jets.project.namespace = <<~EOL Will delete #{stack_name.color(:green)} Uses remote runner to delete the stack and resources. EOL unless stack_exists?(stack_name) << <<~EOL Note: It looks like the stack #{stack_name} has already been deleted. Jets will create a dummy stack to delete the API deployment record. The dummy stack will be deleted immediately after. EOL end sure?() end |