snmp-open 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snmp/open/command_reader.rb +2 -0
- data/lib/snmp/open/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09dd63241e17dc715dc949d0b727f61e777cfade'
|
4
|
+
data.tar.gz: a3bf4afbcb4debc166bbc04b0c67292d41a63a12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdf0ce08cdc82f961165108a9ea267011cf65c84c34b9ff944d91650ea9ea13bdc413f83346115041b1e6797509a3bda4a823e34de8b02c912587d071b3856f4
|
7
|
+
data.tar.gz: 402b3e552a7c41ffe6f33b48f8c62e42ab79a1775540068304579f3babcaf0309b7d17b8cb4a7b4c195ea0d35ba52d103259e37ec02c54ea6c4c04ea97d6eb8f
|
@@ -54,6 +54,7 @@ module SNMP
|
|
54
54
|
else
|
55
55
|
Open3.capture3(cli(cmd, oid, options))
|
56
56
|
end
|
57
|
+
raise CommandTimeoutError, err.chomp if err =~ /^timeout/i
|
57
58
|
raise CommandError, err.chomp unless err.empty?
|
58
59
|
out
|
59
60
|
end
|
@@ -122,5 +123,6 @@ module SNMP
|
|
122
123
|
end # class CommandReader
|
123
124
|
|
124
125
|
class CommandError < RuntimeError; end
|
126
|
+
class CommandTimeoutError < CommandError; end
|
125
127
|
end # class Open
|
126
128
|
end # module SNMP
|
data/lib/snmp/open/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snmp-open
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.6.11
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Wrapper for command-line SNMP utilities
|