profils pour docker-machine
This commit is contained in:
parent
a9004fa1d2
commit
45c6422e62
12
dk
12
dk
|
@ -280,9 +280,21 @@ function auto_down() {
|
|||
|
||||
DEFAULT_PROFILE=devel
|
||||
PROFILE=
|
||||
DM_PROFILES=()
|
||||
set_defaults dk
|
||||
export PROFILE
|
||||
|
||||
if progexists docker-machine; then
|
||||
setx active_dm=docker-machine active
|
||||
for dm_profile in "${DM_PROFILES[@]}"; do
|
||||
splitpair "$dm_profile" dm profile
|
||||
if [ "$dm" == "$active_dm" ]; then
|
||||
DEFAULT_PROFILE="$profile"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
chdir=
|
||||
args=(
|
||||
--help '$exit_with display_help'
|
||||
|
|
|
@ -2,3 +2,6 @@
|
|||
|
||||
# Profil par défaut
|
||||
#PROFILE=prod
|
||||
|
||||
# Profiles pour docker-machine
|
||||
#DM_PROFILES=(name:profile...)
|
||||
|
|
Loading…
Reference in New Issue