nagios_helper 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/nagios +8 -1
- data/lib/nagios.rb +9 -1
- data/lib/nagios_helper.rb +1 -0
- data/nagios_helper.gemspec +1 -1
- metadata +15 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 189a4423dde6fbb473a196fde484895fc351d230
|
4
|
+
data.tar.gz: b0efaa5fc4c000685b208302280ee61caa6fc816
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3394830493dda7933aa39600a8c5b7561f0296681eabc4112bd28a9f6b9474533997ef925e0bcc4b42afe46512496b5bf8963c09b3d7cc625985a9975b17c143
|
7
|
+
data.tar.gz: c4e148e357b2f65cda9f8313f1690c10c38b49c45a1379c48c7392b13cb7d42a0d0b9c7f9f7ccd8613ab752bde751c2a1025081c5bae1411660ac648a19ff75a
|
data/bin/nagios
CHANGED
@@ -32,7 +32,14 @@ $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), %w{.. lib})))
|
|
32
32
|
require 'nagios/boot'
|
33
33
|
|
34
34
|
raise "RAILS_ROOT not found" unless defined?(RAILS_ROOT)
|
35
|
-
|
35
|
+
begin
|
36
|
+
require File.expand_path(File.join(RAILS_ROOT, %w{config environment.rb}))
|
37
|
+
rescue LoadError
|
38
|
+
old_verbose, $VERBOSE = $VERBOSE, nil
|
39
|
+
RAILS_ROOT = "."
|
40
|
+
$VERBOSE = old_verbose
|
41
|
+
require File.expand_path(File.join(%w{config environment.rb}))
|
42
|
+
end
|
36
43
|
|
37
44
|
require 'nagios/runner'
|
38
45
|
|
data/lib/nagios.rb
CHANGED
@@ -50,7 +50,15 @@ module Nagios
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def rails_root
|
53
|
-
@rails_root ||=
|
53
|
+
@rails_root ||= begin
|
54
|
+
if defined?(RAILS_ROOT)
|
55
|
+
RAILS_ROOT
|
56
|
+
elsif defined?(Rails)
|
57
|
+
Rails.root
|
58
|
+
elsif defined?(Application)
|
59
|
+
Application.root
|
60
|
+
end
|
61
|
+
end
|
54
62
|
end
|
55
63
|
|
56
64
|
def rails_root=(rails_root)
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'nagios'
|
data/nagios_helper.gemspec
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nagios_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Makarchev Konstantin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: eventmachine
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: Gem for writing, testing, executing nagios checks inside Rails application.
|
@@ -74,7 +74,7 @@ executables:
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
-
-
|
77
|
+
- .gitignore
|
78
78
|
- Gemfile
|
79
79
|
- LICENSE
|
80
80
|
- README.md
|
@@ -94,6 +94,7 @@ files:
|
|
94
94
|
- lib/nagios/runner.rb
|
95
95
|
- lib/nagios/runner_async.rb
|
96
96
|
- lib/nagios/spec_helper.rb
|
97
|
+
- lib/nagios_helper.rb
|
97
98
|
- nagios_helper.gemspec
|
98
99
|
- spec/nagios_spec.rb
|
99
100
|
- spec/nagios_support.rb
|
@@ -108,17 +109,17 @@ require_paths:
|
|
108
109
|
- lib
|
109
110
|
required_ruby_version: !ruby/object:Gem::Requirement
|
110
111
|
requirements:
|
111
|
-
- -
|
112
|
+
- - '>='
|
112
113
|
- !ruby/object:Gem::Version
|
113
114
|
version: '0'
|
114
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
116
|
requirements:
|
116
|
-
- -
|
117
|
+
- - '>='
|
117
118
|
- !ruby/object:Gem::Version
|
118
119
|
version: '0'
|
119
120
|
requirements: []
|
120
121
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.1.4
|
122
123
|
signing_key:
|
123
124
|
specification_version: 4
|
124
125
|
summary: Gem for writing, testing, executing nagios checks inside Rails application.
|