Sha256: 5cefe58ee01040180850a283961ce4179ea27fc0521c207669a9af77eeff7524

Contents?: true

Size: 831 Bytes

Versions: 720

Compression:

Stored size: 831 Bytes

Contents

#!/bin/bash --login
# USE THIS SCRIPT WHEN UPGRADING VERSIONS IN Gemfile
if [[ -d '/opt/pwn' ]]; then
  pwn_root='/opt/pwn' 
else
  pwn_root="${PWN_ROOT}"
fi

source /etc/profile.d/rvm.sh
ruby_version=`cat ${pwn_root}/.ruby-version`
ruby_gemset=`cat ${pwn_root}/.ruby-gemset`
rvm use ruby-$ruby_version@global
rvm gemset --force delete $ruby_gemset
if [[ -f "${pwn_root}/Gemfile.lock" ]]; then
  rm $pwn_root/Gemfile.lock
fi

rvm use ruby-$ruby_version@$ruby_gemset --create
export rvmsudo_secure_path=1
rvmsudo gem install bundler
if [[ $(uname -s) == "Darwin" ]]; then
  bundle config build.pg --with-pg-config=/opt/local/lib/postgresql96/bin/pg_config
  bundle config build.serialport --with-cflags=-Wno-implicit-function-declaration
fi
bundle install
# bundle install --full-index
rvm --default ruby-$ruby_version@$ruby_gemset

Version data entries

720 entries across 720 versions & 1 rubygems

Version Path
pwn-0.5.207 reinstall_pwn_gemset.sh
pwn-0.5.206 reinstall_pwn_gemset.sh
pwn-0.5.205 reinstall_pwn_gemset.sh
pwn-0.5.204 reinstall_pwn_gemset.sh
pwn-0.5.203 reinstall_pwn_gemset.sh
pwn-0.5.202 reinstall_pwn_gemset.sh
pwn-0.5.201 reinstall_pwn_gemset.sh
pwn-0.5.200 reinstall_pwn_gemset.sh
pwn-0.5.199 reinstall_pwn_gemset.sh
pwn-0.5.198 reinstall_pwn_gemset.sh
pwn-0.5.197 reinstall_pwn_gemset.sh
pwn-0.5.196 reinstall_pwn_gemset.sh
pwn-0.5.195 reinstall_pwn_gemset.sh
pwn-0.5.194 reinstall_pwn_gemset.sh
pwn-0.5.193 reinstall_pwn_gemset.sh
pwn-0.5.192 reinstall_pwn_gemset.sh
pwn-0.5.191 reinstall_pwn_gemset.sh
pwn-0.5.190 reinstall_pwn_gemset.sh
pwn-0.5.189 reinstall_pwn_gemset.sh
pwn-0.5.188 reinstall_pwn_gemset.sh