Sha256: 360ed23f508b5132d545e3d508ecd89a49ba5fcbfb8cf3d918bf7a257ae7ceea
Contents?: true
Size: 685 Bytes
Versions: 4
Compression:
Stored size: 685 Bytes
Contents
require "crono_trigger/version" require "ostruct" require "active_record" require "concurrent" require "crono_trigger/worker" require "crono_trigger/polling_thread" require "crono_trigger/schedulable" module CronoTrigger @config = OpenStruct.new( polling_thread: 1, polling_interval: 5, executor_thread: 25, model_names: [], error_handlers: [], ) def self.config @config end def self.configure yield config end def self.load_config(yml, environment = nil) config = YAML.load_file(yml)[environment || "default"] config.each do |k, v| @config[k] = v end end end if defined?(Rails) require "crono_trigger/railtie" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
crono_trigger-0.3.2 | lib/crono_trigger.rb |
crono_trigger-0.3.0 | lib/crono_trigger.rb |
crono_trigger-0.2.0 | lib/crono_trigger.rb |
crono_trigger-0.1.0 | lib/crono_trigger.rb |