summaryrefslogtreecommitdiff
path: root/utils.sh
diff options
context:
space:
mode:
authorist <ist@ISTdebian64.(none)>2012-08-03 11:51:43 +0200
committerist <ist@ISTdebian64.(none)>2012-08-03 11:51:43 +0200
commitb8c44f7ef95dcba6261376930fe1c55a53b178bc (patch)
treefc4922ddc4d48985b7b5660a6bfe86891fffad97 /utils.sh
parent829d4145e413f75f7e1986d6091859c4b77de563 (diff)
Added package lists. Added service installer.
Diffstat (limited to 'utils.sh')
-rwxr-xr-xutils.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/utils.sh b/utils.sh
index d5bbe58..6d40b74 100755
--- a/utils.sh
+++ b/utils.sh
@@ -93,6 +93,30 @@ install_with_bundler() {
cmd="bundle install" && run_cmd "$cmd" "Install using bundler"
}
+# download opentox git repo
+ot_git_download(){
+ printf "\n%50s\n" "GIT DOWNLOAD"
+ check_utils "git"
+ cd $OT_PREFIX
+ cmd="git clone git@github.com:opentox/$SERVICE.git" && run_cmd "$cmd" "Downloading $SERVICE git repository"
+}
+
+# install opentox service
+install_ot_service(){
+ printf "\n%50s\n" "$SERVICE"
+ local DIR=`pwd`
+ cd $OT_PREFIX
+ ot_git_download
+ cd $SERVICE
+ git checkout development
+ case "$SERVICE" in
+ opentox-server) install_with_bundler;;
+ opentox-client) install_with_bundler;;
+ *) cd bin; for f in `ls`; do ./$f; done;;
+ esac
+ cd $DIR
+}
+
# emit notification if caller was the shell (the user), see http://goo.gl/grCOk
notify() {
echo