lib/scout/command/run.rb in scout-5.1.4 vs lib/scout/command/run.rb in scout-5.1.5

- old
+ new

@@ -9,9 +9,15 @@ 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 + + unless $stdin.tty? + log.info "Sleeping #{@scout.sleep_interval} sec" if log + sleep @scout.sleep_interval + end + @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