Permalink
Browse files

fixed regression: error when running scout without first running install

  • Loading branch information...
1 parent 24d3f9b commit 8f639df8226d2359e53644c63bbc6ee72ffaac94 Andre Lewis committed Dec 30, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/scout/command/run.rb
View
@@ -5,12 +5,14 @@ class Command
class Run < Command
def run
key = @args.first
- # too much external logic of command doing things to server ... should be moved into server class
+ # TODO: this is an awkward way to force creation of the config directory. Could use a little refactoring.
+ configuration_directory = config_dir
+ log.debug("Configuration directory is #{configuration_directory} ") if log
+ # TODO: too much external logic of command doing things TO server. This should be moved into the server class.
@scout = Scout::Server.new(server, key, history, log)
@scout.load_history
@scout.fetch_plan
-
if @scout.new_plan || @scout.time_to_checkin? || @force
if @scout.new_plan
log.info("Now checking in with new plugin plan") if log

0 comments on commit 8f639df

Please sign in to comment.