scout_agent 3.1.7 → 3.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ == 3.1.8
2
+
3
+ * Switching XMPP default to off until we enable that feature
4
+ * Added a queue_for_plugin() alias to the API for queue_for_mission()
5
+ * Added some examples to the API documentation
6
+
1
7
  == 3.1.7
2
8
 
3
9
  * Reverting DNS changes due to other severe issues they caused (you can switch
@@ -243,13 +243,26 @@ module ScoutAgent
243
243
  def queue_for_mission(mission_id, message, options = { })
244
244
  QueueCommand.new(mission_id, message, options)
245
245
  end
246
+ alias_method :queue_for_plugin, :queue_for_mission
246
247
 
247
248
  #
248
249
  # This method queues a report that will be sent straight to the Scout server
249
- # during the next checkin. The passed +fields+ must be a Hash and must
250
- # contain a <tt>:plugin_id</tt> key/value pair that tells the server which
251
- # plugin this report belongs to. The returned object and background
252
- # processing rules are the same as those described in queue_for_mission().
250
+ # during the next checkin.
251
+ #
252
+ # The passed +fields+ must be a Hash and must contain a <tt>:plugin_id</tt>
253
+ # key/value pair that tells the server which plugin this report belongs to.
254
+ # All other pairs in the +fields+ Hash will be considered the data for your
255
+ # report. For example, you could send the current Time in a report as
256
+ # follows:
257
+ #
258
+ # now = Time.now
259
+ # ScoutAgent::API.queue_report( :hour => now.hour,
260
+ # :minute => now.min,
261
+ # :second => now.sec,
262
+ # :plugin_id => 42 )
263
+ #
264
+ # The returned object and background processing rules are the same as those
265
+ # described in queue_for_mission().
253
266
  #
254
267
  def queue_report(fields, options = { })
255
268
  QueueCommand.new(:report, fields, options)
@@ -271,6 +284,12 @@ module ScoutAgent
271
284
  # outlined in queue_report(). The returned object and background processing
272
285
  # rules are the same as those described in queue_for_mission().
273
286
  #
287
+ # Thus a typical alert message looks like:
288
+ #
289
+ # ScoutAgent::API.queue_alert( :subject => "You should know",
290
+ # :body => "Details here...",
291
+ # :plugin_id => 42 )
292
+ #
274
293
  def queue_alert(fields, options = { })
275
294
  QueueCommand.new(:alert, fields, options)
276
295
  end
@@ -281,6 +300,12 @@ module ScoutAgent
281
300
  # outlined in queue_report(). The returned object and background processing
282
301
  # rules are the same as those described in queue_for_mission().
283
302
  #
303
+ # Thus a typical error message looks like:
304
+ #
305
+ # ScoutAgent::API.queue_error( :subject => "Something went wrong",
306
+ # :body => "Details here...",
307
+ # :plugin_id => 42 )
308
+ #
284
309
  def queue_error(fields, options = { })
285
310
  QueueCommand.new(:error, fields, options)
286
311
  end
@@ -24,7 +24,7 @@ module ScoutAgent
24
24
  [:proxy_url, nil],
25
25
  [:run_as_daemon, true],
26
26
  [:logging_level, "INFO"],
27
- [:enable_xmpp, true],
27
+ [:enable_xmpp, false],
28
28
  [:test_mode, false],
29
29
 
30
30
  [:periodic_snapshots, true],
data/lib/scout_agent.rb CHANGED
@@ -91,7 +91,7 @@ module ScoutAgent
91
91
  end
92
92
 
93
93
  # The version of this agent.
94
- VERSION = "3.1.7".freeze
94
+ VERSION = "3.1.8".freeze
95
95
  # A Pathname reference to the agent code directory, used in dynamic loading.
96
96
  LIB_DIR = Pathname.new(File.dirname(__FILE__)) + agent_name
97
97
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.7
4
+ version: 3.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Edward Gray II
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-05-13 00:00:00 -05:00
15
+ date: 2009-05-14 00:00:00 -05:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency