Sha256: 0a38289ca822c436e968c23433145ff2d029337a8c8fdc326ccf5ad87b953872
Contents?: true
Size: 870 Bytes
Versions: 2
Compression:
Stored size: 870 Bytes
Contents
#!/usr/bin/env ruby require 'optimus-runner/server/optimus_runner_sm' require 'rufus/scheduler' require 'logger' require 'optimus-runner/utils/optimuscloudenv' optimus_runner_sm = OptimusRunnerSM.new scheduler = Rufus::Scheduler.new logger = Logger.new(STDOUT) logger.level = Logger::WARN logger.info "Starting Optimus runner..." puts ARGV OptimusCloudEnvLoader.new.loadEnv scheduler.interval '5s', :first_in => 0.1 do logger.info "Is Optimus runner idle? #{optimus_runner_sm.idle?}" optimus_runner_sm.create if optimus_runner_sm.idle? optimus_runner_sm.add if optimus_runner_sm.new_device_added? optimus_runner_sm.remove if optimus_runner_sm.device_removed? optimus_runner_sm.restart if optimus_runner_sm.session_terminated? optimus_runner_sm.empty if optimus_runner_sm.cloud_session_empty? # You have done FLUSHALL in akira end scheduler.join
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
optimus-runner-1.1.3 | exe/optimus_runner_manager |
optimus-runner-1.1.2 | exe/optimus_runner_manager |