cap-rightscale 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/cap-rightscale.gemspec +1 -1
- data/lib/cap-rightscale/utils/rs_utils.rb +7 -7
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.5
|
data/cap-rightscale.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ class RSUtils
|
|
|
10
10
|
path = "#{tmpdir}/#{_prefix}-#{ENV['USER']}-#{rand(0x100000000).to_s(36)}"
|
|
11
11
|
Dir.mkdir(path, 0700)
|
|
12
12
|
rescue Errno::EEXIST
|
|
13
|
-
|
|
13
|
+
warn(e)
|
|
14
14
|
exit(1)
|
|
15
15
|
end
|
|
16
16
|
end
|
|
@@ -22,12 +22,12 @@ class RSUtils
|
|
|
22
22
|
threads << Thread.new {Ping.pingecho(host)}
|
|
23
23
|
end
|
|
24
24
|
threads.each_with_index do |t,i|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
unless t.value
|
|
26
|
+
logger.info("Server dead: #{hosts[i]}")
|
|
27
|
+
hosts[i] = nil
|
|
28
|
+
else
|
|
29
|
+
logger.info("Server alive: #{hosts[i]}")
|
|
30
|
+
end
|
|
31
31
|
end
|
|
32
32
|
hosts.delete(nil)
|
|
33
33
|
threads.clear
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cap-rightscale
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 0.3.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.3.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Satoshi Ohki
|