nrpe_check 0.0.2 → 0.0.4

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.
@@ -18,7 +18,7 @@ module NRPE
18
18
  def exit_with_status status, message = nil
19
19
  case status.downcase
20
20
  when :ok, :warning, :critical, :unknown
21
- puts "#{status.upcase}: " + message if message
21
+ STDOUT.puts "#{status.upcase}: " + message if message
22
22
 
23
23
  exit! eval ['NRPE', 'Status', status.upcase].join '::'
24
24
  else
@@ -1,3 +1,4 @@
1
1
  require File.join File.dirname(__FILE__), '..', 'nrpe_check'
2
+ [STDOUT, STDERR].each {|io| io.sync = true}
2
3
 
3
- extend NRPE::Check
4
+ extend NRPE::Check
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nrpe_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
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: 2012-11-02 00:00:00.000000000 Z
12
+ date: 2013-03-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email:
@@ -47,4 +47,3 @@ signing_key:
47
47
  specification_version: 3
48
48
  summary: nrpe check helper
49
49
  test_files: []
50
- has_rdoc: