Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kostya/ruby-app-cron
RubyApp extension, adds Forverb support.
https://github.com/kostya/ruby-app-cron
Last synced: 20 days ago
JSON representation
RubyApp extension, adds Forverb support.
- Host: GitHub
- URL: https://github.com/kostya/ruby-app-cron
- Owner: kostya
- License: mit
- Created: 2012-07-22T17:27:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-15T17:25:19.000Z (about 12 years ago)
- Last Synced: 2023-03-11T22:52:37.180Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RubyAppCron
===========[RubyApp](http://github.com/kostya/ruby-app) extension, adds [Forverb](https://github.com/DAddYE/foreverb) support.
Using
-----Add to Gemfile:
gem 'ruby-app-cron'
Create runner: bin/crons```ruby
#!/usr/bin/env rubyrequire File.join(File.dirname(__FILE__), %w{.. config environment})
App::Cron.run
```
Create example cron: app/crons/test1.rb```ruby
class Test1 < Application::Cronevery 45.seconds, :puts1
every 35.seconds, :puts2def puts1
App.logger.info '1'
enddef puts2
App.logger.info '2'
endend
```