Sha256: d90d40e40fe2bf2289ce301d2c47a5dd890e89fd33c1310a645b631e00f878ac
Contents?: true
Size: 758 Bytes
Versions: 3
Compression:
Stored size: 758 Bytes
Contents
require "logger" require "optparse" require "etc" require 'time' module JstdRunner Log = Logger.new(STDOUT) class << self attr_accessor :shutting_down end end require "selenium-webdriver" require "eventmachine" require "daemons" require "socket" require "mail" require "fileutils" require 'em-proxy' require "jstd-runner/cli" require "jstd-runner/monitorable" require "jstd-runner/browser" require "jstd-runner/vnc_control" require "jstd-runner/server" require "jstd-runner/runner" module EventMachine def self.daily at, &blk time = Time.parse(at) - Time.now time += 86400 if time < 0 EM.run do run_me = proc{ EM.add_timer(86400, run_me) blk.call } EM.add_timer(time, run_me) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jstd-runner-0.0.9 | lib/jstd-runner.rb |
jstd-runner-0.0.8 | lib/jstd-runner.rb |
jstd-runner-0.0.7 | lib/jstd-runner.rb |