Sha256: bc178dc745c5bf1d04365c8eb0d45c51ff27908259229065d71cbf9f0289e2b9

Contents?: true

Size: 858 Bytes

Versions: 550

Compression:

Stored size: 858 Bytes

Contents

#!/bin/bash --login
if [[ -d '/opt/pwn' ]]; then
  pwn_root='/opt/pwn' 
else
  pwn_root="${PWN_ROOT}"
fi

ls pkg/*.gem | while read previous_gems; do 
  rvmsudo rm $previous_gems
done
old_ruby_version=`cat ${pwn_root}/.ruby-version`
# Default Strategy is to merge codebase
rvmsudo git config pull.rebase false 
rvmsudo git pull
new_ruby_version=`cat ${pwn_root}/.ruby-version`

rvmsudo gem update --system

if [[ $old_ruby_version == $new_ruby_version ]]; then
  export rvmsudo_secure_path=1
  rvmsudo /bin/bash --login -c "cd ${pwn_root} && ./reinstall_pwn_gemset.sh"
  cd /tmp && cd $pwn_root
  rvmsudo rake
  rvmsudo rake install
  rvmsudo rake rerdoc
  rvmsudo gem rdoc --rdoc --ri --overwrite -V pwn
  echo "Invoking bundle-audit Gemfile Scanner..."
  rvmsudo bundle-audit
else
  cd $pwn_root && ./upgrade_ruby.sh $new_ruby_version $old_ruby_version
fi

Version data entries

550 entries across 550 versions & 1 rubygems

Version Path
pwn-0.5.214 build_pwn_gem.sh
pwn-0.5.213 build_pwn_gem.sh
pwn-0.5.212 build_pwn_gem.sh
pwn-0.5.211 build_pwn_gem.sh
pwn-0.5.210 build_pwn_gem.sh
pwn-0.5.209 build_pwn_gem.sh
pwn-0.5.207 build_pwn_gem.sh
pwn-0.5.206 build_pwn_gem.sh
pwn-0.5.205 build_pwn_gem.sh
pwn-0.5.204 build_pwn_gem.sh
pwn-0.5.203 build_pwn_gem.sh
pwn-0.5.202 build_pwn_gem.sh
pwn-0.5.201 build_pwn_gem.sh
pwn-0.5.200 build_pwn_gem.sh
pwn-0.5.199 build_pwn_gem.sh
pwn-0.5.198 build_pwn_gem.sh
pwn-0.5.197 build_pwn_gem.sh
pwn-0.5.196 build_pwn_gem.sh
pwn-0.5.195 build_pwn_gem.sh
pwn-0.5.194 build_pwn_gem.sh