rm init_db
This commit is contained in:
parent
2f2c95568f
commit
70b088136b
@ -132,22 +132,6 @@ function swap() {
|
||||
mv $TMPFILE "$2"
|
||||
fi
|
||||
}
|
||||
|
||||
function init_db() {
|
||||
SERVICE=server
|
||||
while getopts ":s:" o; do
|
||||
case "${o}" in
|
||||
s)
|
||||
SERVICE=${OPTARG}
|
||||
;;
|
||||
*)
|
||||
echo "Usage: init_db [-s SERVICE]"
|
||||
return
|
||||
;;
|
||||
esac
|
||||
done
|
||||
dc exec $SERVICE rails db:drop db:create db:migrate db:seed
|
||||
}
|
||||
function cmd_exists() {
|
||||
$* &> /dev/null
|
||||
if [[ $? == 0 ]]; then
|
||||
|
@ -149,6 +149,5 @@ function kubectl() {
|
||||
esac
|
||||
done
|
||||
[[ $DEBUG == "true" ]] && echo "kubectl --kubeconfig=$HOME/.kube/${KCONTEXT}_config $finalopts"
|
||||
echo "kubectl --kubeconfig=$HOME/.kube/${KCONTEXT}_config $finalopts"
|
||||
command kubectl --kubeconfig=$HOME/.kube/${KCONTEXT}_config $finalopts
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user