lib/scout/command/run.rb in scout-5.5.10 vs lib/scout/command/run.rb in scout-5.6.0.alpha
- old
+ new
@@ -8,10 +8,10 @@
# TODO: this is an awkward way to force creation of the config directory. Could use a little refactoring.
configuration_directory = config_dir
log.debug("Running Scout [#{Scout::VERSION}] on #{Socket.gethostname}") if log
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, server_name, @http_proxy, @https_proxy)
+ @scout = Scout::Server.new(server, key, history, log, server_name, @http_proxy, @https_proxy, @roles)
@scout.load_history
unless $stdin.tty?
log.info "Sleeping #{@scout.sleep_interval} sec" if log
sleep @scout.sleep_interval