arborist 0.0.1.pre20160106113421 → 0.0.1.pre20160128152542
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Manifest.txt +9 -3
- data/README.md +15 -6
- data/Rakefile +16 -2
- data/TODO.md +10 -1
- data/Tutorial.md +8 -0
- data/bin/arborist +8 -0
- data/lib/arborist.rb +12 -11
- data/lib/arborist/cli.rb +380 -0
- data/lib/arborist/client.rb +16 -0
- data/lib/arborist/command/client.rb +30 -0
- data/lib/arborist/command/config.rb +20 -0
- data/lib/arborist/command/start.rb +60 -0
- data/lib/arborist/command/watch.rb +88 -0
- data/lib/arborist/event/node_matching.rb +5 -0
- data/lib/arborist/loader.rb +43 -0
- data/lib/arborist/loader/file.rb +72 -0
- data/lib/arborist/manager.rb +4 -3
- data/lib/arborist/monitor.rb +8 -22
- data/lib/arborist/node.rb +57 -37
- data/lib/arborist/observer.rb +4 -18
- data/spec/arborist/client_spec.rb +1 -1
- data/spec/arborist/manager/tree_api_spec.rb +1 -0
- data/spec/arborist/manager_spec.rb +15 -4
- data/spec/arborist/monitor_spec.rb +13 -9
- data/spec/arborist/node_spec.rb +36 -6
- data/spec/arborist_spec.rb +36 -5
- data/spec/data/monitors/pings.rb +1 -0
- data/spec/data/monitors/port_checks.rb +0 -3
- data/spec/spec_helper.rb +4 -1
- metadata +18 -11
- data/bin/amanagerd +0 -10
- data/bin/amonitord +0 -12
- data/bin/aobserverd +0 -12
data/spec/data/monitors/pings.rb
CHANGED
@@ -14,6 +14,7 @@ module FPingWrapper
|
|
14
14
|
attr_accessor :identifiers
|
15
15
|
|
16
16
|
def exec_arguments( nodes )
|
17
|
+
self.log.debug "Building fping arguments for %d nodes" % [ nodes.size ]
|
17
18
|
self.identifiers = nodes.each_with_object({}) do |(identifier, props), hash|
|
18
19
|
next unless props.key?( 'addresses' )
|
19
20
|
address = props[ 'addresses' ].first
|
data/spec/spec_helper.rb
CHANGED
@@ -63,7 +63,8 @@ module Arborist::TestHelpers
|
|
63
63
|
|
64
64
|
|
65
65
|
def make_testing_manager
|
66
|
-
|
66
|
+
loader = Arborist::Loader.create( :file, SPEC_DATA_DIR + 'nodes' )
|
67
|
+
return Arborist.manager_for( loader )
|
67
68
|
end
|
68
69
|
|
69
70
|
|
@@ -110,6 +111,8 @@ RSpec.configure do |config|
|
|
110
111
|
mock.syntax = :expect
|
111
112
|
end
|
112
113
|
|
114
|
+
config.filter_run_excluding( :no_ci ) if ENV['SEMAPHORE'] || ENV['CI']
|
115
|
+
|
113
116
|
config.include( Loggability::SpecHelpers )
|
114
117
|
config.include( Arborist::TestHelpers )
|
115
118
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arborist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.pre20160128152542
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
G8LHR7EjtPPmqCCunfyecJ6MmCNaiJCBxq2NYzyNmluPyHT8+0fuB5kccUVZm6CD
|
32
32
|
xn3DzOkDE6NYbk8gC9rTsA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-01-
|
34
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: schedulability
|
@@ -244,16 +244,16 @@ dependencies:
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '3.14'
|
246
246
|
description: |-
|
247
|
-
Arborist is a monitoring
|
247
|
+
Arborist is a monitoring toolkit that follows the UNIX philosophy
|
248
248
|
of small parts and loose coupling for stability, reliability, and
|
249
249
|
customizability.
|
250
|
+
|
251
|
+
[![Build Status](https://semaphoreci.com/api/v1/projects/13677b60-5f81-4e6e-a9c6-e21d30daa4ca/461532/badge.svg)](https://semaphoreci.com/ged/arborist)
|
250
252
|
email:
|
251
253
|
- ged@FaerieMUD.org
|
252
254
|
- mahlon@martini.nu
|
253
255
|
executables:
|
254
|
-
-
|
255
|
-
- amonitord
|
256
|
-
- aobserverd
|
256
|
+
- arborist
|
257
257
|
extensions: []
|
258
258
|
extra_rdoc_files:
|
259
259
|
- Events.md
|
@@ -265,6 +265,7 @@ extra_rdoc_files:
|
|
265
265
|
- Protocol.md
|
266
266
|
- README.md
|
267
267
|
- TODO.md
|
268
|
+
- Tutorial.md
|
268
269
|
files:
|
269
270
|
- ".document"
|
270
271
|
- ".simplecov"
|
@@ -280,11 +281,15 @@ files:
|
|
280
281
|
- README.md
|
281
282
|
- Rakefile
|
282
283
|
- TODO.md
|
283
|
-
-
|
284
|
-
- bin/
|
285
|
-
- bin/aobserverd
|
284
|
+
- Tutorial.md
|
285
|
+
- bin/arborist
|
286
286
|
- lib/arborist.rb
|
287
|
+
- lib/arborist/cli.rb
|
287
288
|
- lib/arborist/client.rb
|
289
|
+
- lib/arborist/command/client.rb
|
290
|
+
- lib/arborist/command/config.rb
|
291
|
+
- lib/arborist/command/start.rb
|
292
|
+
- lib/arborist/command/watch.rb
|
288
293
|
- lib/arborist/event.rb
|
289
294
|
- lib/arborist/event/node_acked.rb
|
290
295
|
- lib/arborist/event/node_delta.rb
|
@@ -292,6 +297,8 @@ files:
|
|
292
297
|
- lib/arborist/event/node_update.rb
|
293
298
|
- lib/arborist/event/sys_reloaded.rb
|
294
299
|
- lib/arborist/exceptions.rb
|
300
|
+
- lib/arborist/loader.rb
|
301
|
+
- lib/arborist/loader/file.rb
|
295
302
|
- lib/arborist/manager.rb
|
296
303
|
- lib/arborist/manager/event_publisher.rb
|
297
304
|
- lib/arborist/manager/tree_api.rb
|
@@ -363,6 +370,6 @@ rubyforge_project:
|
|
363
370
|
rubygems_version: 2.4.8
|
364
371
|
signing_key:
|
365
372
|
specification_version: 4
|
366
|
-
summary: Arborist is a monitoring
|
367
|
-
parts and loose coupling for stability, reliability, and customizability
|
373
|
+
summary: Arborist is a monitoring toolkit that follows the UNIX philosophy of small
|
374
|
+
parts and loose coupling for stability, reliability, and customizability
|
368
375
|
test_files: []
|
data/bin/amanagerd
DELETED
data/bin/amonitord
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'arborist'
|
4
|
-
require 'arborist/monitor_runner'
|
5
|
-
|
6
|
-
monitors_path = ARGV.shift or raise "No monitor file specified."
|
7
|
-
|
8
|
-
Arborist.load_config( ARGV.shift )
|
9
|
-
Arborist.load_all
|
10
|
-
|
11
|
-
runner = Arborist.monitor_runner_for( monitors_path )
|
12
|
-
runner.run
|
data/bin/aobserverd
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'arborist'
|
4
|
-
require 'arborist/observer_runner'
|
5
|
-
|
6
|
-
observers_path = ARGV.shift or raise "No observer file specified."
|
7
|
-
|
8
|
-
Arborist.load_config( ARGV.shift )
|
9
|
-
Arborist.load_all
|
10
|
-
|
11
|
-
runner = Arborist.observer_runner_for( observers_path )
|
12
|
-
runner.run
|