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 CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cap-rightscale}
8
- s.version = "0.3.4"
8
+ s.version = "0.3.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Satoshi Ohki"]
@@ -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
- logger.warn(e)
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
- 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
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 4
10
- version: 0.3.4
9
+ - 5
10
+ version: 0.3.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Satoshi Ohki