do_run 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +20 -0
- data/LICENSE +674 -0
- data/README.md +244 -0
- data/bin/do +10 -0
- data/lib/do/cli.rb +448 -0
- data/lib/do/config.rb +163 -0
- data/lib/do/error.rb +14 -0
- data/lib/do/executor.rb +36 -0
- data/lib/do/manager.rb +114 -0
- data/lib/do/scheduler.rb +93 -0
- data/lib/do/systemd.rb +214 -0
- data/lib/do/task.rb +53 -0
- data/lib/do/validator.rb +124 -0
- data/lib/do/version.rb +3 -0
- data/lib/do.rb +13 -0
- metadata +85 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d6da66670bb824e8db45bf6793d771e68dfe4b00ee206b71b83bb74ac0fd7154
|
|
4
|
+
data.tar.gz: d664c94f74e209e7255d05888709604caa992eb68e42ad0b328bda6d8cce51e2
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 051dc4c3e2dcf34c61509e1df28ec1ae6f10d37e23f2bcbc0e756401e858b4afca313b210d3954d66ed168c55af7b50d6e05bb32b28c88eca67912d38a0e7d59
|
|
7
|
+
data.tar.gz: bf65e07a513a69fbb8ae496056f78dce00b04c90519e18abcf0600a1f8b1e1f716fca4544d1a887cdf7c3fa7f96b4c263887fbdc2a868153b2e17d459a8a3c4b
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented in this file.
|
|
4
|
+
|
|
5
|
+
## [0.1.0] - Unreleased
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- Declarative TOML configuration at `~/.config/do/config.toml`.
|
|
9
|
+
- Task model with `command`, `schedule`, `time`, `day`, `working_directory`,
|
|
10
|
+
`environment`, and `enabled`.
|
|
11
|
+
- Schedule types: `once`, `hourly`, `daily`, `weekly`, `monthly`, mapped to
|
|
12
|
+
systemd `OnCalendar=` expressions.
|
|
13
|
+
- Systemd user service/timer generation with `Managed by do` marker.
|
|
14
|
+
- Commands: `run`, `list`, `status`, `logs`, `enable`, `disable`, `remove`,
|
|
15
|
+
`validate`, `reload`, `schedule`, `unschedule`, `doctor`, `version`,
|
|
16
|
+
`config path`, `config show`, plus `do <task>` shorthand.
|
|
17
|
+
- Stateless validator covering malformed TOML, missing fields, invalid
|
|
18
|
+
schedules/times/days, duplicate names, missing directories, malformed
|
|
19
|
+
environments, invalid unit names, and unsupported fields.
|
|
20
|
+
- RSpec suite with systemd mocked.
|