Sha256: 42282861a96902476b3039b09ab6e6bd7df221a47237c5f605fa70a5cc611a9b
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
on_error do |job, error| puts "An error has occurred: #{error.class}: #{error.message}" end every('2 seconds') do puts "hello from a ruby-clock job" end every('2 seconds') do shell 'say hello' end every('2 seconds') do puts Example.count end every('2 seconds') do raise "An error." end cron('*/10 * * * * *') do puts "cron running on every 10th second #{Time.now}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-clock-2.0.0.beta2 | example-rails-app/Clockfile |