Sha256: 04db48eb0bdcaa12c71771f6384c17785b145fc06cd187feab48b35ad474826c
Contents?: true
Size: 1.37 KB
Versions: 9
Compression:
Stored size: 1.37 KB
Contents
#!/usr/bin/env bash # TOOLROOT=$HOME/Projekte/deploy_depengine TOOLROOT=/home/jenkins/Projekt_depengine RUBYVERSION=1.9.3 DEPENGINEVERSION=0.0.8 usage=$( cat <<EOF $0 [OPTION] -t VALUE set toolroot argument to VALUE -r VALUE set rubyversion argument to VALUE -d VALUE set depengineversion argument to VALUE EOF ) while getopts "t:r:d:" OPTION; do case "$OPTION" in t) TOOLROOT="$OPTARG" ;; r) RUBYVERSION="$OPTARG" ;; d) DEPENGINEVERSION="$OPTARG" ;; *) echo "unrecognized option" echo "$usage" ;; esac done export rvm_path=$TOOLROOT/rvm mkdir -p $rvm_path if [ ! -f $rvm_path/scripts/rvm ]; then bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) fi source $rvm_path/scripts/rvm rvm reload if rvm list | grep "$RUBYVERSION" >/dev/null; then # echo EXISTIERT : else # echo MUSS INSTALLIERT WERDEN rvm install --autolibs=fail "$RUBYVERSION" fi rvm use "$RUBYVERSION" gem update --system | grep -v "Latest version currently installed" if gem list | grep depengine | grep "$DEPENGINEVERSION" >/dev/null; then # echo EXISTIERT : else # echo MUSS INSTALLIERT WERDEN gem install --no-ri --no-rdoc depengine --version "$DEPENGINEVERSION" fi # type de # de --deployhome /export/home/ctraut/Projekte/deploy_demoproject --env demo --version 0.0.1
Version data entries
9 entries across 9 versions & 1 rubygems