Commit Graph

11 Commits

Author SHA1 Message Date
Jeff Wong d51da1fc1d
FEATURE: add --tags and --skip-tags options (#28)
* FEATURE: add --tags and --skip-tags options

Allow config manifests to be tagged, so a pups run can apply a subset of run commands.

Update to ruby 3.2.
Lots of linting. Added rubocop lint exception for Eval.
Fixing test imports, update MiniTest::Test -> Minitest::Test.
2023-10-22 17:42:24 -07:00
Michael Fitz-Payne 193242003d
FEATURE: Support generating docker cli arguments. (#22)
The --gen-docker-env-args argument makes pups process any template
environment variables and generate the command line arguments suitable
for the docker run command. The intention is to expand support for
configuring container runtime into pups such that configuration
templates can be more generally useful.

Bash special characters are safely escaped. This prevents issues where
variables contain special characters that are parsed by the calling shell.
A script which uses the pups output may have unexpected side effects
without escaping the special characters.

Note that only `env`, `label`, and `volume` config variables are escaped
as these are the most likely to contain special chacters. No attempt is
made to validate config variables against the allowed characters by
docker itself.

Other changes:
- Change some exit calls to return to prevent the tests prematurely
exiting.
2021-06-15 16:14:21 +10:00
Michael Fitz-Payne 44198d7704
Add --quiet option to silence logs. (#25)
This prevents any output from pups being printed. Exceptions will still
be output when they occur.

Slightly restructured the cli class so that the options are able to be
parsed separately to the run method so we can print the usage message in
the event of invalid input.
2021-06-09 10:12:18 +10:00
Michael Fitz-Payne 2069d66f39
Add lint step to CI, fix all lint issues. (#24)
The fixes were performend rubocop -A functionality for autocorrecting.
The linting is enforced according to the rubocop-discourse rules.
2021-06-03 12:22:29 +10:00
Sam a863a053a9 support passing a correct exit code 2016-05-26 16:29:36 +10:00
Sam Saffron 5c589546e1 added file command and removed runit specific stuff 2013-11-03 16:18:10 -08:00
Sam Saffron 12e80e9ae8 work in progress 2013-10-30 23:11:25 -07:00
Sam Saffron 6b83a8e74e runit configurator works 2013-10-30 22:17:32 -07:00
Sam aa68eab205 work in progress runit services 2013-10-31 13:43:32 +11:00
Sam c96b19112c tests and brand new dsl 2013-10-31 13:28:01 +11:00
Sam Saffron 738e5ff3ec initial commit 2013-10-29 23:20:58 -07:00