Sha256: f10846c5b1db229a373ec2d5769577c9eac955638a35e9f4d2303c574bfda9cc

Contents?: true

Size: 699 Bytes

Versions: 4

Compression:

Stored size: 699 Bytes

Contents

#!/usr/bin/env bash

# Install bundler, fog, rake
#
# Options:
# * $UPGRADE - re-install or upgrade gems if already installed

set -e # exit immediately if a simple command exits with a non-zero status

if [[ $EUID -ne 0 ]]; then
  echo "ERROR: This script must be run as root" 1>&2
  exit 1
fi

# Install a gem if $UPGRADE exists or if gem not already installed
function install_gem() {
  gem_name=$1
  options=$2
  if [[ ("${UPGRADE}X" != "X") || "$(gem list $gem_name | grep $gem_name)X" == "X" ]]; then
    gem install $gem_name $options --no-ri --no-rdoc -f
  else
    echo gem $gem_name already installed
  fi
}

install_gem bundler
install_gem rake
install_gem jazor
install_gem yaml_command

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bosh-bootstrap-0.10.2 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_useful_gems
bosh-bootstrap-0.10.1 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_useful_gems
bosh-bootstrap-0.10.0 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_useful_gems
bosh-bootstrap-0.9.0 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_useful_gems