Crontab plugin for Dotbot.
Add dotbot-crontab
as a submodule of your dotfiles repository:
git submodule add git@github.com:codekansas/dotbot-crontab.git
Update install
script to enable the dotbot-crontab
plugin:
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" \
-d "${BASEDIR}" \
-c "${CONFIG}" \
--plugin-dir dotbot-crontab \
"${@}"
Adds a crontab
directive, which can be configured like the examples below:
- crontab:
- key: SHELL
value: /bin/bash
platform: darwin
- key: RANDOM_DELAY
value: 10
- time: 0 5 * * *
command: brew update && brew upgrade
platform: darwin # Optional
- time: 0 5 * * *
command: apt update && apt upgrade
platform: linux # Optional
This is basically just a wrapper for python-crontab. Doing ./install
clears the existing DotBot-generated commands and refreshes with whatever is in your install.conf.yaml
file.
Run black
after any code changes:
black crontab.py