Class: Jets::CLI::Ci::Stop
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#build_id, #check_build_id!, #find_build, #run_with_exception_handling, #show_console_log_url, #stack_name, #stop_build
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
#run ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/jets/cli/ci/stop.rb', line 3 def run are_you_sure? check_build_id! run_with_exception_handling do stopped = stop_build log.info "Build has been stopped: #{build_id}" if stopped show_console_log_url(build_id) end end |