corona 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +13 -13
- data/Rakefile +1 -0
- data/corona.gemspec +1 -1
- data/lib/corona/config/bootstrap.rb +2 -0
- data/lib/corona/core.rb +1 -0
- data/lib/corona/snmp.rb +4 -1
- metadata +3 -3
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,22 +3,22 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
coderay (1.0.9)
|
5
5
|
diff-lcs (1.2.3)
|
6
|
-
method_source (0.8.
|
7
|
-
pry (0.9.
|
6
|
+
method_source (0.8.2)
|
7
|
+
pry (0.9.10)
|
8
8
|
coderay (~> 1.0.5)
|
9
9
|
method_source (~> 0.8)
|
10
|
-
slop (~> 3.
|
11
|
-
rspec (2.
|
12
|
-
rspec-core (~> 2.
|
13
|
-
rspec-expectations (~> 2.
|
14
|
-
rspec-mocks (~> 2.
|
15
|
-
rspec-core (2.
|
16
|
-
rspec-expectations (2.
|
10
|
+
slop (~> 3.3.1)
|
11
|
+
rspec (2.14.1)
|
12
|
+
rspec-core (~> 2.14.0)
|
13
|
+
rspec-expectations (~> 2.14.0)
|
14
|
+
rspec-mocks (~> 2.14.0)
|
15
|
+
rspec-core (2.14.5)
|
16
|
+
rspec-expectations (2.14.2)
|
17
17
|
diff-lcs (>= 1.1.3, < 2.0)
|
18
|
-
rspec-mocks (2.
|
19
|
-
sequel (3.
|
20
|
-
slop (3.
|
21
|
-
snmp (1.1.
|
18
|
+
rspec-mocks (2.14.3)
|
19
|
+
sequel (3.42.0)
|
20
|
+
slop (3.3.2)
|
21
|
+
snmp (1.1.0)
|
22
22
|
sqlite3 (1.3.7)
|
23
23
|
|
24
24
|
PLATFORMS
|
data/Rakefile
CHANGED
data/corona.gemspec
CHANGED
data/lib/corona/core.rb
CHANGED
data/lib/corona/snmp.rb
CHANGED
@@ -18,7 +18,10 @@ module Corona
|
|
18
18
|
require 'snmp'
|
19
19
|
def initialize host, community=CFG.community
|
20
20
|
@snmp = ::SNMP::Manager.new :Host => host, :Community => community,
|
21
|
-
:Timeout =>
|
21
|
+
:Timeout => CFG.timeout, :Retries => CFG.retries, :MibModules => []
|
22
|
+
end
|
23
|
+
def close
|
24
|
+
@snmp.close
|
22
25
|
end
|
23
26
|
def get *oid
|
24
27
|
oid = [oid].flatten.join('.')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corona
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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: 2013-
|
12
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
segments:
|
98
98
|
- 0
|
99
|
-
hash:
|
99
|
+
hash: 1830848294566328575
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
none: false
|
102
102
|
requirements:
|