ocean-dynamo 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +2 -4
- data/lib/ocean-dynamo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e520e001a8732d1e8238a73c9e23e0b8f4fd5b2
|
4
|
+
data.tar.gz: 921ef44f7fc8af615664f5037444a35f8fd8f4a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ef0072ba8c6d720a0049dc4c39485f00743e9387ac9ce167d83a5f2b1bd15c0b386b14b61b8fc918fffa93dbd3a579d02cad1a7c4bd85f9397e6ebc263c8bda
|
7
|
+
data.tar.gz: 9a238b2932974f82e812bec6256f78d26b2dcdcdacc5670db28ca63024f515be5617613d39cccdfc34cb74fef30b315fd94d0c62044989599e481d9fa6b534fa
|
data/README.rdoc
CHANGED
@@ -276,12 +276,10 @@ block:
|
|
276
276
|
|
277
277
|
# DynamoDB table cleaner
|
278
278
|
CHEF_ENV = "master" unless defined?(CHEF_ENV)
|
279
|
+
regexp = Regexp.new("^.+_#{CHEF_ENV}_[0-9]{1,3}-[0-9]{1,3}-[0-9]{1,3}-[0-9]{1,3}_test$")
|
279
280
|
cleaner = lambda {
|
280
281
|
c = Aws::DynamoDB::Client.new
|
281
|
-
c.list_tables.table_names.each
|
282
|
-
next unless t =~ Regexp.new("^.+_#{CHEF_ENV}_[0-9]{1,3}-[0-9]{1,3}-[0-9]{1,3}-[0-9]{1,3}_test$")
|
283
|
-
c.delete_table({table_name: t})
|
284
|
-
end
|
282
|
+
c.list_tables.table_names.each { |t| c.delete_table({table_name: t}) if t =~ regexp }
|
285
283
|
}
|
286
284
|
|
287
285
|
Then, inside the +RSpec.configure+ block:
|
data/lib/ocean-dynamo/version.rb
CHANGED