module
Squarectl::Commands::Compose
Overview
Builds and runs docker compose (or docker-compose on v1) commands.
Mixed into Task; used directly by the compose target and reused by the
kube target to render the merged compose config before conversion.
Direct including types
Defined in:
squarectl/commands/compose.crConstant Summary
-
PRE_ARGS_BOOL =
["--all-resources", "--compatibility", "--dry-run"] -
docker-compose global flags that must appear before the action verb.
PRE_ARGS_BOOLtake no value;PRE_ARGS_FLAGStake a following value (or--flag=value). Everything else is treated as a post-action argument. -
PRE_ARGS_FLAGS =
["--ansi", "--env-file", "--parallel", "--profile", "--progress", "--project-directory"] -
docker-compose global flags that must appear before the action verb.
PRE_ARGS_BOOLtake no value;PRE_ARGS_FLAGStake a following value (or--flag=value). Everything else is treated as a post-action argument.
Instance Method Summary
-
#build_docker_compose_command(action, args)
Assembles the full argv:
--project-name --file ... - #capture_docker_compose(action, args)
- #exec_docker_compose(action, args) : NoReturn
-
#extract_docker_args(args)
Splits user-supplied args into those that belong before the action verb (matched against
PRE_ARGS_BOOL/PRE_ARGS_FLAGS, consuming a value for the latter) and everything else, which goes after. - #run_docker_compose(action, args)
Instance Method Detail
Assembles the full argv:
docker with a compose prefix arg; on v1 it is
docker-compose with no prefix (dropped via compact).
Splits user-supplied args into those that belong before the action verb
(matched against PRE_ARGS_BOOL/PRE_ARGS_FLAGS, consuming a value for
the latter) and everything else, which goes after.