Class: Jets::CLI::Maintenance::Worker::Base
- Includes:
- Lambda::Functions
- Defined in:
- lib/jets/cli/maintenance/worker/base.rb
Instance Attribute Summary collapse
-
#s3_bucket ⇒ Object
readonly
Returns the value of attribute s3_bucket.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #lambda_functions ⇒ Object
- #state_file ⇒ Object
Methods inherited from Base
#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
Instance Attribute Details
#s3_bucket ⇒ Object (readonly)
Returns the value of attribute s3_bucket.
5 6 7 |
# File 'lib/jets/cli/maintenance/worker/base.rb', line 5 def s3_bucket @s3_bucket end |
Instance Method Details
#lambda_functions ⇒ Object
15 16 17 18 19 20 |
# File 'lib/jets/cli/maintenance/worker/base.rb', line 15 def lambda_functions super.select do |lambda_function| # Accounts for both app/events and app/jobs (from jets geneneration) lambda_function.name.match(/_event-/) end end |
#state_file ⇒ Object
11 12 13 |
# File 'lib/jets/cli/maintenance/worker/base.rb', line 11 def state_file "jets/state/maintenance/lambda_concurrency_settings.json" end |