cron.cr

Not safe. Not efficient. Probably shouldn't be used. Modifies cron tabs.

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

  1. Fork it ( https://github.com/chris-huxtable/cron.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

cron.cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • almost 6 years ago
  • May 14, 2018
License

ISC License

Links
Synced at

Thu, 16 May 2024 11:13:04 GMT

Languages