netatlas-poller 0.0.0 → 0.0.1
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.
- data/Gemfile.lock +9 -10
- data/VERSION +1 -1
- data/bin/poller.rb +1 -1
- data/lib/netatlas.rb +2 -0
- data/lib/netatlas/config.rb +2 -1
- data/lib/netatlas/poller.rb +4 -3
- data/netatlas-poller.gemspec +3 -2
- metadata +5 -4
data/Gemfile.lock
CHANGED
|
@@ -7,18 +7,17 @@ GIT
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: http://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activemodel (3.0.
|
|
11
|
-
activesupport (= 3.0.
|
|
10
|
+
activemodel (3.0.5)
|
|
11
|
+
activesupport (= 3.0.5)
|
|
12
12
|
builder (~> 2.1.2)
|
|
13
13
|
i18n (~> 0.4)
|
|
14
|
-
activeresource (3.0.
|
|
15
|
-
activemodel (= 3.0.
|
|
16
|
-
activesupport (= 3.0.
|
|
17
|
-
activesupport (3.0.
|
|
18
|
-
amqp (0.
|
|
14
|
+
activeresource (3.0.5)
|
|
15
|
+
activemodel (= 3.0.5)
|
|
16
|
+
activesupport (= 3.0.5)
|
|
17
|
+
activesupport (3.0.5)
|
|
18
|
+
amqp (0.7.0)
|
|
19
19
|
eventmachine (>= 0.12.4)
|
|
20
|
-
amqp-spec (0.3.
|
|
21
|
-
amqp (~> 0.6.7)
|
|
20
|
+
amqp-spec (0.3.8)
|
|
22
21
|
bundler (>= 1.0.0)
|
|
23
22
|
builder (2.1.2)
|
|
24
23
|
diff-lcs (1.1.2)
|
|
@@ -27,7 +26,7 @@ GEM
|
|
|
27
26
|
eventmachine (0.12.10)
|
|
28
27
|
git (1.2.5)
|
|
29
28
|
i18n (0.5.0)
|
|
30
|
-
jeweler (1.5.
|
|
29
|
+
jeweler (1.5.2)
|
|
31
30
|
bundler (~> 1.0.0)
|
|
32
31
|
git (>= 1.2.5)
|
|
33
32
|
rake
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.1
|
data/bin/poller.rb
CHANGED
data/lib/netatlas.rb
ADDED
data/lib/netatlas/config.rb
CHANGED
data/lib/netatlas/poller.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
require 'netatlas/config'
|
|
2
|
+
require 'netatlas/resource/base'
|
|
2
3
|
module NetAtlas
|
|
3
4
|
class Poller < Resource::Base
|
|
4
5
|
|
|
@@ -23,7 +24,7 @@ class Poller < Resource::Base
|
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
def run
|
|
26
|
-
|
|
27
|
+
EM.synchrony do
|
|
27
28
|
EventMachine.add_periodic_timer(1) {
|
|
28
29
|
do_scheduler
|
|
29
30
|
}
|
|
@@ -31,7 +32,7 @@ class Poller < Resource::Base
|
|
|
31
32
|
loop do
|
|
32
33
|
next_poll
|
|
33
34
|
end
|
|
34
|
-
|
|
35
|
+
end
|
|
35
36
|
end
|
|
36
37
|
|
|
37
38
|
def do_scheduler
|
data/netatlas-poller.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{netatlas-poller}
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Ron McClain"]
|
|
12
|
-
s.date = %q{
|
|
12
|
+
s.date = %q{2011-03-12}
|
|
13
13
|
s.description = %q{NetAtlas Poller}
|
|
14
14
|
s.email = %q{ronmcclain75@gmail.com}
|
|
15
15
|
s.executables = ["poller.rb", "poller_ctl"]
|
|
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
|
|
|
28
28
|
"VERSION",
|
|
29
29
|
"bin/poller.rb",
|
|
30
30
|
"bin/poller_ctl",
|
|
31
|
+
"lib/netatlas.rb",
|
|
31
32
|
"lib/netatlas/config.rb",
|
|
32
33
|
"lib/netatlas/plugin/base.rb",
|
|
33
34
|
"lib/netatlas/plugin/http.rb",
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.0.1
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Ron McClain
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date:
|
|
17
|
+
date: 2011-03-12 00:00:00 -06:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -174,6 +174,7 @@ files:
|
|
|
174
174
|
- VERSION
|
|
175
175
|
- bin/poller.rb
|
|
176
176
|
- bin/poller_ctl
|
|
177
|
+
- lib/netatlas.rb
|
|
177
178
|
- lib/netatlas/config.rb
|
|
178
179
|
- lib/netatlas/plugin/base.rb
|
|
179
180
|
- lib/netatlas/plugin/http.rb
|
|
@@ -200,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
200
201
|
requirements:
|
|
201
202
|
- - ">="
|
|
202
203
|
- !ruby/object:Gem::Version
|
|
203
|
-
hash:
|
|
204
|
+
hash: 187891097432520559
|
|
204
205
|
segments:
|
|
205
206
|
- 0
|
|
206
207
|
version: "0"
|