cron.cr
cron.cr
Not safe. Not efficient. Probably shouldn't be used.
Modifies cron tabs.
Installation
Add this to your application's shard.yml
:
dependencies:
cron:
github: chris-huxtable/cron.cr
Usage
require "cron"
Example:
tab = Cron.tab()
tab.add_task("tag.for.task", Cron::Task.reboot("some sh command"))
tab.replace_task("tag.for.task", Cron::Task.task("some sh command", 0, 1))
tab.remove_task("tag.for.task")
tab.disable_task("tag.for.task")
tab.enable_task("tag.for.task")
Contributing
- Fork it ( https://github.com/chris-huxtable/cron.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Chris Huxtable - creator, maintainer
Repository
cron.cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 2
- over 6 years ago
- May 14, 2018
License
ISC License
Links
Synced at
Thu, 07 Nov 2024 16:24:50 GMT
Languages