scout 5.0.2 → 5.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,25 @@
1
+ == 5.0.3
2
+
3
+ * fixed regression: Error when running `scout AGENT_KEY` without first running scout and manually entering the agent key
4
+
5
+ == 5.0.2
6
+
7
+ * fixed silent failure when plugin didn't inherit from Scout::Plugin
8
+ * beefed up error reporting
9
+
10
+ == 5.0.1
11
+
12
+ * plugin errors are now reported to scout server as errors, for easier plugin troubleshooting
13
+
14
+ == 5.0.0
15
+
16
+ * crontab must now run Scout every minute, regardless of what plan you are on
17
+ * Support for server downtime notifications
18
+ * Pings server every minute. Performs actual checkin on schedule provided by server
19
+ * Support for plugin option definition via an inline YAML file.
20
+ * Easier format for providing plugin arguments in test mode (scout help for details)
21
+ * Prints plugin arguments, including defaults, when run in test mode
22
+
1
23
  == 4.0.2
2
24
 
3
25
  * Check-in once after all plugins are run instead of once for each plugin for
data/lib/scout.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby -wKU
2
2
 
3
3
  module Scout
4
- VERSION = "5.0.2".freeze
4
+ VERSION = "5.0.3".freeze
5
5
  end
6
6
 
7
7
  require "scout/command"
@@ -5,12 +5,14 @@ module Scout
5
5
  class Run < Command
6
6
  def run
7
7
  key = @args.first
8
- # too much external logic of command doing things to server ... should be moved into server class
8
+ # TODO: this is an awkward way to force creation of the config directory. Could use a little refactoring.
9
+ configuration_directory = config_dir
10
+ log.debug("Configuration directory is #{configuration_directory} ") if log
11
+ # TODO: too much external logic of command doing things TO server. This should be moved into the server class.
9
12
  @scout = Scout::Server.new(server, key, history, log)
10
13
  @scout.load_history
11
14
  @scout.fetch_plan
12
15
 
13
-
14
16
  if @scout.new_plan || @scout.time_to_checkin? || @force
15
17
  if @scout.new_plan
16
18
  log.info("Now checking in with new plugin plan") if log
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Highgroove Studios
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-23 00:00:00 -08:00
12
+ date: 2009-12-30 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency