Skip to content

codekansas/dotbot-crontab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dotbot-crontab

Crontab plugin for Dotbot.

Installation

Add dotbot-crontab as a submodule of your dotfiles repository:

git submodule add [email protected]: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 \
    "${@}"

Usage

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

Under the Hood

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.

Contributing

Run black after any code changes:

black crontab.py

About

Crontab plugin for Dotbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages