certmeister-dynamodb 0.1.0 → 0.1.1

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: f9eec943cf0131dab54091b55b4942df48885efd
4
- data.tar.gz: 9b4a1122673853ba89757d78fe95dc2398b2646f
3
+ metadata.gz: 4feb640f864243398ee7e819b75f50334e59d27e
4
+ data.tar.gz: 8fd079782c8401032fce326201c0efc8d86a5bd4
5
5
  SHA512:
6
- metadata.gz: caf5f912a1214af1772eedc29bc74a1148299525dadaca74a1893b898f806db93d5bd984c00866db366c8179b5f0ea648061bcbea1a433d8df1f25b96025259f
7
- data.tar.gz: beb0728ce4d88baee5950b8f69ce5959d78e96df70b2db38113158c12c41592f68ad4a2bac15c638d582c6d2750d52cef8f77b1c92e41b8cc0614f54a0f4029a
6
+ metadata.gz: 2e98d67f80c880c8f91ba9a8da63c7d232c2575d9d17739c89780bc13619a3a0969e56b351f9182fc71001f24cd8263fc720cb192886adb2a97f4aa28e72907f
7
+ data.tar.gz: 94185440bb814418d2c870f6f7899673225377825845532a22f825370492e6bf7bde18814c8189630dc7c2125f077f86f16da6eeaebbbbc02096d927aa530d91
@@ -51,6 +51,8 @@ module Certmeister
51
51
 
52
52
  def do_provisioning(provisioned_throughput)
53
53
  begin
54
+ @db.describe_table(table_name: @table_name)
55
+ rescue Aws::DynamoDB::Errors::ResourceNotFoundException
54
56
  @db.create_table(
55
57
  table_name: @table_name,
56
58
  attribute_definitions: [
@@ -75,8 +77,6 @@ module Certmeister
75
77
  $stderr.puts "Waiting for table #{@table_name} to be created"
76
78
  sleep 1
77
79
  end
78
- rescue Aws::DynamoDB::Errors::ResourceInUseException
79
- # Already exists
80
80
  end
81
81
  end
82
82
 
@@ -2,7 +2,7 @@ module Certmeister
2
2
 
3
3
  module DynamoDB
4
4
 
5
- VERSION = '0.1.0' unless defined?(VERSION)
5
+ VERSION = '0.1.1' unless defined?(VERSION)
6
6
 
7
7
  end
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: certmeister-dynamodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sheldon Hearn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: certmeister