From 59a80f7857e624604c3cc255ed21a32885c0272a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 31 Aug 2015 23:06:45 -0400 Subject: [PATCH] Move config_create into config/functions --- plugins/config/commands | 6 ------ plugins/config/functions | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/config/commands b/plugins/config/commands index 31e4dae8b..99ca9de57 100755 --- a/plugins/config/commands +++ b/plugins/config/commands @@ -3,12 +3,6 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x source "$PLUGIN_PATH/common/functions" source "$PLUGIN_PATH/config/functions" -config_create () { - [ -f $ENV_FILE ] || { - touch $ENV_FILE - } -} - config_styled_hash () { vars="$1" prefix="$2" diff --git a/plugins/config/functions b/plugins/config/functions index d21742bd8..888c776b6 100644 --- a/plugins/config/functions +++ b/plugins/config/functions @@ -45,3 +45,8 @@ config_parse_args() { fi export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART } + +config_create () { + local ENV_FILE=$1 + [ -f $ENV_FILE ] || touch $ENV_FILE +}