Sha256: 603492ca55e0c3988569e7a49ff60b2fba9fd3697644db72e98942fdc547e254

Contents?: true

Size: 1.33 KB

Versions: 22

Compression:

Stored size: 1.33 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 "$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 depengine --version "$DEPENGINEVERSION"
fi

# type de
# de --deployhome /export/home/ctraut/Projekte/deploy_demoproject --env demo --version 0.0.1

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
depengine-0.0.30 bin/full_install
depengine-0.0.29 bin/full_install
depengine-0.0.28 bin/full_install
depengine-0.0.27 bin/full_install
depengine-0.0.26 bin/full_install
depengine-0.0.25 bin/full_install
depengine-0.0.24 bin/full_install
depengine-0.0.23 bin/full_install
depengine-0.0.22 bin/full_install
depengine-0.0.21 bin/full_install
depengine-0.0.20 bin/full_install
depengine-0.0.19 bin/full_install
depengine-0.0.18 bin/full_install
depengine-0.0.17 bin/full_install
depengine-0.0.16 bin/full_install
depengine-0.0.15 bin/full_install
depengine-0.0.14 bin/full_install
depengine-0.0.13 bin/full_install
depengine-0.0.12 bin/full_install
depengine-0.0.11 bin/full_install