Module: Cumulus::Lambda
- Defined in:
- lib/lambda/Lambda.rb
Constant Summary collapse
- @@client =
Aws::Lambda::Client.new(Configuration.instance.client)
Class Method Summary collapse
-
.functions ⇒ Object
Public: Provide a mapping of functions to their names.
-
.get_aws(name) ⇒ Object
Public: Static method that will get a Lambda function from AWS by its name.
Class Method Details
.functions ⇒ Object
Public: Provide a mapping of functions to their names. Lazily loads resources.
Returns the functions mapped to their names
27 28 29 |
# File 'lib/lambda/Lambda.rb', line 27 def functions @functions ||= init_functions end |
.get_aws(name) ⇒ Object
Public: Static method that will get a Lambda function from AWS by its name
name - the name of the function to get
Returns the function
16 17 18 19 20 21 |
# File 'lib/lambda/Lambda.rb', line 16 def get_aws(name) functions.fetch(name) rescue KeyError puts "No Lambda function named #{name}" exit end |