ace-client-ext 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/ace-client/niftycloud/rdb.rb +10 -4
- metadata +2 -8
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
@@ -22,11 +22,17 @@ module AceClient
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def delete_db_instances
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
db_instances.each do |db_instance|
|
26
|
+
self.action('DeleteDBInstance', 'DBInstanceIdentifier' => db_instance['DBInstanceIdentifier'], 'SkipFinalSnapshot' => 'true')
|
27
|
+
end
|
28
|
+
timeout(60*60) do
|
29
|
+
until db_instances.empty?
|
30
|
+
if db_instances.any? {|db_instance| db_instance['DBInstanceStatus'] == 'failed' }
|
31
|
+
failed = db_instances.select {|db_instance| db_instance['DBInstanceStatus'] == 'failed' }
|
32
|
+
raise "DBInstance #{failed.map {|f| f['DBInstanceIdentifier'] }.join(',')} is failed"
|
33
|
+
end
|
34
|
+
sleep 5
|
28
35
|
end
|
29
|
-
sleep 5
|
30
36
|
end
|
31
37
|
end
|
32
38
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ace-client-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -72,18 +72,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- - ! '>='
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
hash: -3751842866038037972
|
78
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
76
|
none: false
|
80
77
|
requirements:
|
81
78
|
- - ! '>='
|
82
79
|
- !ruby/object:Gem::Version
|
83
80
|
version: '0'
|
84
|
-
segments:
|
85
|
-
- 0
|
86
|
-
hash: -3751842866038037972
|
87
81
|
requirements: []
|
88
82
|
rubyforge_project:
|
89
83
|
rubygems_version: 1.8.24
|