Class: LambdaWrap::AwsService
Abstract
- Inherits:
-
Object
- Object
- LambdaWrap::AwsService
show all
- Defined in:
- lib/lambda_wrap/aws_service.rb
Overview
Super Abstract Class for all AWS services and their calls.
Instance Method Summary
collapse
Instance Method Details
#delete(client, region = 'AWS_REGION') ⇒ Object
24
25
26
27
28
|
# File 'lib/lambda_wrap/aws_service.rb', line 24
def delete(client, region = 'AWS_REGION')
@client = client
@region = region
client_guard
end
|
#deploy(environment, client, region = 'AWS_REGION') ⇒ Object
6
7
8
9
10
11
12
13
|
# File 'lib/lambda_wrap/aws_service.rb', line 6
def deploy(environment, client, region = 'AWS_REGION')
unless environment.is_a?(LambdaWrap::Environment)
raise ArgumentError, 'Must pass a LambdaWrap::Environment class.'
end
@client = client
@region = region
client_guard
end
|
#teardown(environment, client, region = 'AWS_REGION') ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/lambda_wrap/aws_service.rb', line 15
def teardown(environment, client, region = 'AWS_REGION')
unless environment.is_a?(LambdaWrap::Environment)
raise ArgumentError, 'Must pass a LambdaWrap::Environment class.'
end
@client = client
@region = region
client_guard
end
|