Sha256: df8aaed18c2ed8e9540f7b84015d4c5c0c84e02ab80dd8581e01080b703951c6
Contents?: true
Size: 739 Bytes
Versions: 4
Compression:
Stored size: 739 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 "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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jstd-runner-0.0.6 | lib/jstd-runner.rb |
jstd-runner-0.0.5 | lib/jstd-runner.rb |
jstd-runner-0.0.4 | lib/jstd-runner.rb |
jstd-runner-0.0.3 | lib/jstd-runner.rb |