perus 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perus/pinger/metrics/value.rb +1 -1
- data/lib/perus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f56e61b3219419f836bbae92b49cfc35330f89d
|
4
|
+
data.tar.gz: e6728c4313c0068683998ae1f0afd3a5ac93af21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb8f44cea18719b51eb9887bb02d07836e5742f57c0bf5ca2987fffce41665aea8ae483b18860f1c7cf97a6accd269ed940521cc4b655117f5a77c22975bed78
|
7
|
+
data.tar.gz: 0aab536725d3c43c4404fec26ecae26afc34cc3577d4bd430a0b8ee92e048ae5817fc9aabba11a9fb534cd327fb32f7339b1b6537952dccad0d633cbaca20b63
|
@@ -12,7 +12,7 @@ module Perus::Pinger
|
|
12
12
|
def run
|
13
13
|
grep = options.grep.gsub('"', '\\"')
|
14
14
|
line = shell(%Q[cat #{options.path} | egrep "#{grep}"])
|
15
|
-
value = line.match(Regexp.compile(options.
|
15
|
+
value = line.match(Regexp.compile(options.grep))[1]
|
16
16
|
{options.name => value}
|
17
17
|
end
|
18
18
|
end
|
data/lib/perus/version.rb
CHANGED