Class: Jets::CLI::Env::Base

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

Direct Known Subclasses

List

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
10
11
# File 'lib/jets/cli/env/base.rb', line 6

def initialize(options = {})
  super
  check_deployed!
  function_name = Jets::CLI::Lambda::Lookup.function(options[:function])
  @lambda_function = Jets::CLI::Lambda::Function.new(function_name)
end