Class: Jets::CLI::Maintenance::Base

Inherits:
Base
  • Object
show all
Includes:
Lambda::Checks, Util::Truthy
Defined in:
lib/jets/cli/maintenance/base.rb

Direct Known Subclasses

Mode, Worker

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods included from Util::Truthy

#truthy?

Methods included from Lambda::Checks

#check_deployed!, #check_workers!, #workers_deployed?

Methods inherited from Base

#paginate, #paging_params, rescue_api_error

Methods included from Util::Logging

#log

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

#output_value, #stack_exists?

Methods included from AwsServices::GlobalMemoist

included, #reset_cache!

Methods included from Api

#api, #api_key

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



6
7
8
9
# File 'lib/jets/cli/maintenance/base.rb', line 6

def initialize(options = {})
  super
  check_deployed!
end

Instance Method Details

#statusObject



11
12
13
# File 'lib/jets/cli/maintenance/base.rb', line 11

def status
  on? ? "on" : "off"
end