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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 607ac6f7897fd02734b7becfde1a0433537d0834
4
- data.tar.gz: 7a99c2c22b98f5ced65293bfcbfbd0ce8777310c
3
+ metadata.gz: b47d747dee8ec24d3afbf8b18ebf6fdc2359afd4
4
+ data.tar.gz: 7ca7e1859e904c2e1f92da462dc427a1d1bb4168
5
5
  SHA512:
6
- metadata.gz: 384e233666fdac0fe44c7c3ba03ad69ec02b9c418f6a45b39ac20b2b51048850215cad0f13076aa610227be4389d4d9bdf5db80a662b4c9202353fdd31d5bd7b
7
- data.tar.gz: 09c693b615ed2c22ab7a72527afd01439d8d7e1dd55fe4003e2ba1c7760bf581499f3dca3d97dc640da0033f93c1d569776ecdc8d3cdba8765110c63fb4cb5dc
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 " \
@@ -1,3 +1,3 @@
1
1
  module LambdaWrap
2
- VERSION = '0.26.6'.freeze
2
+ VERSION = '0.27.0'.freeze
3
3
  end
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.26.6
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-07 00:00:00.000000000 Z
13
+ date: 2017-04-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk