lambda_wrap 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f3d075ab1f624fab81fbe83e804b36193668737
4
- data.tar.gz: c91d33e60d96afd88d3b5025014acb17a3b24cc7
3
+ metadata.gz: c461b1875da7c0bfaee887e511eb653cb60e4d74
4
+ data.tar.gz: 3f56d027c55de2a2ba989e5053fcbf4480ea9599
5
5
  SHA512:
6
- metadata.gz: 9e8acfb158dbaa0038d4add1060174d6b3236af90a2d23c5248e3be5fe3bc16a2272761a3be5d9f9c02024ec29ad10d80ca1e6e57b8153a95320b97e0283ecdd
7
- data.tar.gz: d8382822322779ff0e83c06ad2880691188bba498ef7290f7c42134e13c5fda02b73266e9cb7150cec3ceb4c5327fc0045c6d87dcc84f2f578777d2dd3389901
6
+ metadata.gz: e238427e259a5bd4a3ddf230702de0142396dd1ce5abd1f3c6f43a353613b866999a3c47366400b91353a660ff832fd57a01e8dc89719b4f3a3271c756783b1f
7
+ data.tar.gz: 9667a2cf62c031eeff36b2580bf4be80fba884077dd6bd1c367aedaf0e88fb5d46a23a1e1e5204e36283b080982d73d3fcd8f088be609fda61a55d3fd6af9618
@@ -79,7 +79,8 @@ module LambdaWrap
79
79
  # [function_name] The name of the lambda function.
80
80
  # [handler] The handler that should be executed for this lambda function.
81
81
  # [lambda_role] The arn of the IAM role that should be used when executing the lambda function.
82
- def deploy_lambda(bucket, key, version_id, function_name, handler, lambda_role)
82
+ # [lambda_description] The description of the lambda function.
83
+ def deploy_lambda(bucket, key, version_id, function_name, handler, lambda_role, lambda_description = "Deployed with LambdaWrap")
83
84
 
84
85
  # create or update function
85
86
 
@@ -90,7 +91,7 @@ module LambdaWrap
90
91
  func_version = func_config.version
91
92
  raise 'Error while publishing existing lambda function ' + function_name if !func_config.version
92
93
  rescue Aws::Lambda::Errors::ResourceNotFoundException
93
- func_config = @client.create_function({function_name: function_name, runtime: 'nodejs', role: lambda_role, handler: handler, code: { s3_bucket: bucket, s3_key: key }, timeout: 5, memory_size: 128, publish: true, description: 'created by an automated script'}).data
94
+ func_config = @client.create_function({function_name: function_name, runtime: 'nodejs', role: lambda_role, handler: handler, code: { s3_bucket: bucket, s3_key: key }, timeout: 5, memory_size: 128, publish: true, description: lambda_description}).data
94
95
  puts func_config
95
96
  func_version = func_config.version
96
97
  raise 'Error while publishing new lambda function ' + function_name if !func_config.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lambda_wrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Thurner
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-15 00:00:00.000000000 Z
12
+ date: 2016-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -38,7 +38,7 @@ files:
38
38
  - lib/lambda_wrap/dynamo_db_manager.rb
39
39
  - lib/lambda_wrap/lambda_manager.rb
40
40
  - lib/lambda_wrap/zip_file_generator.rb
41
- homepage:
41
+ homepage: https://github.com/Cimpress-MCP/LambdaWrap
42
42
  licenses:
43
43
  - Apache-2.0
44
44
  metadata: {}