lambda_wrap 0.26.6 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lambda_wrap/dynamo_db_manager.rb +2 -1
- data/lib/lambda_wrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b47d747dee8ec24d3afbf8b18ebf6fdc2359afd4
|
4
|
+
data.tar.gz: 7ca7e1859e904c2e1f92da462dc427a1d1bb4168
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 128c10bf9c107c209810a3d24b107d5a1881f826caa968b9ec3c950591a197f5f65055a2305f2ecaac9ceee380f1c1bb1e617e6e7646be72e75a1da67ea9c668
|
7
|
+
data.tar.gz: 94edd6cc371f977713b949d2f5c59ac4c837a63f3276bb9e346b516543633523f47dbc130ce250be22dffbc07758dd89c32733e63e84f1db798879b1a59c2da1
|
@@ -15,6 +15,7 @@ module LambdaWrap
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def set_table_capacity(table_name, read_capacity, write_capacity)
|
18
|
+
table_details = get_table_details(table_name)
|
18
19
|
puts "Updating new read/write capacity for table #{table_name}.
|
19
20
|
Read #{table_details.provisioned_throughput.read_capacity_units} ==> #{read_capacity}.
|
20
21
|
Write #{table_details.provisioned_throughput.write_capacity_units} ==> #{write_capacity}."
|
@@ -93,7 +94,7 @@ module LambdaWrap
|
|
93
94
|
|
94
95
|
if read_capacity > table_details.provisioned_throughput.read_capacity_units ||
|
95
96
|
write_capacity > table_details.provisioned_throughput.write_capacity_units
|
96
|
-
set_table_capacity(read_capacity, write_capacity)
|
97
|
+
set_table_capacity(table_name, read_capacity, write_capacity)
|
97
98
|
has_updates = true
|
98
99
|
else
|
99
100
|
puts "Table #{table_name} already exists and the desired read capacity of #{read_capacity} and " \
|
data/lib/lambda_wrap/version.rb
CHANGED
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.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Thurner
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-04-
|
13
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aws-sdk
|