From 72d53ee47a6e62af63fbd9805b5eed08d9f0944d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 3 Mar 2014 15:20:31 -0300 Subject: New function hydra_bootstrap_config --- lib/hydra/config | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/hydra/config') diff --git a/lib/hydra/config b/lib/hydra/config index 3cd7cc7..8dbda89 100644 --- a/lib/hydra/config +++ b/lib/hydra/config @@ -67,3 +67,18 @@ function hydra_config { exit 1 fi } + +# Configure puppet-boostrap. +function hydra_bootstrap_config { + local config="$1" + + if [ -z "$config" ] || [ ! -d "$config" ]; then + return + fi + + ( + cd $config + make submodules + make config + ) +} -- cgit v1.2.3