From 70b088136b1ffb618343c52b731555b95cf1ce64 Mon Sep 17 00:00:00 2001 From: hophacker Date: Sun, 3 Jan 2021 00:46:52 +0800 Subject: [PATCH] rm init_db --- zsh/functions.zsh | 16 ---------------- zsh/k8s.zsh | 1 - 2 files changed, 17 deletions(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index dd0d6f2..c774045 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -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 diff --git a/zsh/k8s.zsh b/zsh/k8s.zsh index 1788b41..4f8a36b 100644 --- a/zsh/k8s.zsh +++ b/zsh/k8s.zsh @@ -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 }