Sha256: f4cfecfd082ab48b0560666926cecc890e16989601cddbdcce1098c5493b42e4

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

require "clockwork"

module Clockwork
  configure do |config|
    config[:tz] = "US/Eastern"
  end

  handler { |job| logger.info "Running #{job}" }

  every(1.minute, "Run a job") do
    "Here's a running job"
  end

  every(1.day, "Run at certain time", at: "17:30") do
    "Run at certain time"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clockwork-test-0.2.0 spec/fixtures/clock.rb
clockwork-test-0.1.1 spec/fixtures/clock.rb