Sha256: 35d42e65ceaad508991912bc296b984bfafe5abbf3d91ecd122fe575a1c6447b

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

require "logger"
require "redis"
require "suo"
require "active_support/time"

require "zhong/version"

require "zhong/at"
require "zhong/every"

require "zhong/job"
require "zhong/scheduler"

module Zhong
  class << self
    def schedule(**opts, &block)
      @scheduler = Scheduler.new(opts)
      @scheduler.instance_eval(&block)
      @scheduler.start
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zhong-0.1.0 lib/zhong.rb