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.
@@ -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
@@ -21,7 +21,4 @@ Arborist::Monitor 'port checks on downed tcp services' do
21
21
  exec( Arborist::Monitor::Socket::TCP )
22
22
  end
23
23
 
24
- # :MAHLON: A possible equivalent way to provide the above as a default for some monitors:
25
- # Arborist::Monitor::Socket::TCP.default_monitor
26
-
27
24
 
data/spec/spec_helper.rb CHANGED
@@ -63,7 +63,8 @@ module Arborist::TestHelpers
63
63
 
64
64
 
65
65
  def make_testing_manager
66
- return Arborist.manager_for( SPEC_DATA_DIR + 'nodes' )
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.pre20160106113421
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-06 00:00:00.000000000 Z
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 framework that follows the UNIX philosophy
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
- - amanagerd
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
- - bin/amanagerd
284
- - bin/amonitord
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 framework that follows the UNIX philosophy of small
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
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'arborist'
4
- require 'arborist/manager'
5
-
6
- $0 = "Arborist::Manager"
7
-
8
- Arborist.load_config( ARGV.pop )
9
- mgr = Arborist.manager_for( ARGV.shift )
10
- mgr.run
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