Sha256: ed13249e9a8a6785dd13a6a943e5f67fac2ae22b89e9bad668f40b94a94185b0

Contents?: true

Size: 1.35 KB

Versions: 10

Compression:

Stored size: 1.35 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
    echo "installing RVM..."
    bash -s stable < <(curl -s -L "https://get.rvm.io")
  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

10 entries across 10 versions & 1 rubygems

Version Path
depengine-3.0.23 bin/full_install
depengine-3.0.22 bin/full_install
depengine-3.0.21 bin/full_install
depengine-3.0.20 bin/full_install
depengine-3.0.19 bin/full_install
depengine-3.0.18 bin/full_install
depengine-3.0.17 bin/full_install
depengine-3.0.16 bin/full_install
depengine-3.0.15 bin/full_install
depengine-3.0.14 bin/full_install