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 +4 -4
- data/lib/certmeister/dynamodb/store.rb +2 -2
- data/lib/certmeister/dynamodb/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: 4feb640f864243398ee7e819b75f50334e59d27e
|
4
|
+
data.tar.gz: 8fd079782c8401032fce326201c0efc8d86a5bd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: certmeister
|