lib/splash/orchestrator.rb in prometheus-splash-0.4.2 vs lib/splash/orchestrator.rb in prometheus-splash-0.4.3

- old
+ new

@@ -23,11 +23,11 @@ @config = get_config @result = LogScanner::new @log.info "Splash Orchestrator starting :" if options[:scheduling] then @log.item "Initializing commands Scheduling." - self.init_commands_scheduling + init_commands_scheduling end sched,value = @config.daemon_logmon_scheduling.flatten @log.item "Initializing logs monitorings & notifications." @server.send sched,value do begin @@ -63,11 +63,11 @@ def terminate @log.info "Splash daemon shutdown" @server.shutdown change_logger logger: :cli - splash_exit case: :quiet_exit + splash_exit case: :quiet_exit end private def init_commands_scheduling config = get_config.commands @@ -75,10 +75,10 @@ commands.each do |command| sched,value = config[command][:schedule].flatten @log.arrow "Scheduling command #{command.to_s}" @server.send sched,value do @log.trigger "Executing Scheduled command #{command.to_s} for Scheduling : #{sched.to_s} #{value.to_s}" - self.execute command: command.to_s + execute command: command.to_s end end end