check_slony 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/check_slony +4 -2
  2. data/lib/check_slony.rb +1 -1
  3. metadata +3 -3
data/bin/check_slony CHANGED
@@ -81,7 +81,7 @@ def countcheck_all_tables(options, tty)
81
81
  if @master[t] != info[t][0]
82
82
  info[t][1] = true
83
83
  result_hash["status"] = "NG"
84
- error_str += "node #{node} #{t}"
84
+ error_str += " node #{node} #{t} "
85
85
  end
86
86
  end
87
87
  con.close
@@ -103,10 +103,12 @@ def countcheck_all_tables(options, tty)
103
103
  puts '-' * ((@pg_hash.count * 15) + 60)
104
104
  sl_table.each do |t|
105
105
  temp_array = [t, @master[t]]
106
+ state = "OK"
106
107
  @pg_hash.each{ |k,v|
107
108
  temp_array << v[t][0]
108
- temp_array << (v[t][1] ? "NG" : "OK")
109
+ state = "NG" unless v[t][1]
109
110
  }
111
+ temp_array << state
110
112
  puts fmt % temp_array
111
113
  end
112
114
  end
data/lib/check_slony.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  class CheckSlony
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_slony
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - kakikubo