Sha256: 65a8b1d1ed37dbcd909a3bac139cf0233f1ef6a1242d566f0d7292e1feb67fb4
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
#!/usr/bin/env ruby require 'optimus-runner/server/optimus_runner_sm' require 'rufus/scheduler' require 'logger' require 'optimus-runner/utils/optimuscloudenv.rb' optimus_runner_sm = OptimusRunnerSM.new scheduler = Rufus::Scheduler.new logger = Logger.new(STDOUT) logger.level = Logger::WARN logger.info "Starting Optimus runner..." 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? end scheduler.join
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
optimus-runner-0.8.0 | exe/optimus_runner_manager |