Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fundor333/crontab-dotbot
Crontab plugin for DotBot
https://github.com/fundor333/crontab-dotbot
crontab devops dotbot plugin python
Last synced: 12 days ago
JSON representation
Crontab plugin for DotBot
- Host: GitHub
- URL: https://github.com/fundor333/crontab-dotbot
- Owner: fundor333
- License: unlicense
- Created: 2020-08-13T19:12:51.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-29T14:54:46.000Z (about 4 years ago)
- Last Synced: 2024-08-02T12:44:57.228Z (3 months ago)
- Topics: crontab, devops, dotbot, plugin, python
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - fundor333/crontab-dotbot - Crontab plugin for DotBot (python)
README
# crontab-dotbot
Plugin for [`dotbot`](https://github.com/anishathalye/dotbot) to edit and sync crontab without deleting or editing manual added cronjob, only manage dotbot cron.
## Installation
1. Add `crontab-dotbot` as a submodule of your dotfiles repository.
```bash
git submodule add https://github.com/fundor333/crontab-dotbot.git
```2. Modify your `install` script to enable the `crontab-dotbot` plugin.
```bash
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir crontab-dotbot -c "${CONFIG}" "${@}"
```## Usage
The plugin adds one directive use with `crontab` with two keyword:
- `cron`: The crontab regex
- `command`: The command to run
For example:```yaml
- crontab:
- cron: 0 * * * *
command: echo "Hello world"
```