Sha256: 556250efe37b5983399f968e93d15f40b3a1ef1b954fae48d274798352f4365c

Contents?: true

Size: 1.03 KB

Versions: 63

Compression:

Stored size: 1.03 KB

Contents

#!/bin/bash --login
if [[ $PWN_ROOT == '' ]]; then
  if [[ ! -d '/pwn' ]]; then
    pwn_root=$(pwd)
  else
    pwn_root='/pwn'
  fi
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`

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"
  rvmsudo rake
  rvmsudo rake install
  rvmsudo rake rerdoc
  rvmsudo gem update --system
  rvmsudo gem rdoc --rdoc --ri --overwrite -V pwn
  echo "Invoking bundle-audit Gemfile Scanner..."
  rvmsudo bundle-audit

  latest_gem=$(ls pkg/*.gem)
  if [[ $latest_gem != "" ]]; then
    echo "Pushing ${latest_gem} to RubyGems.org..."
    rvmsudo gem push $latest_gem --debug
  fi
else
  cd $pwn_root && ./upgrade_ruby.sh $new_ruby_version $old_ruby_version
fi

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
pwn-0.4.410 build_pwn_gem.sh
pwn-0.4.409 build_pwn_gem.sh
pwn-0.4.407 build_pwn_gem.sh
pwn-0.4.406 build_pwn_gem.sh
pwn-0.4.405 build_pwn_gem.sh
pwn-0.4.404 build_pwn_gem.sh
pwn-0.4.403 build_pwn_gem.sh
pwn-0.4.402 build_pwn_gem.sh
pwn-0.4.401 build_pwn_gem.sh
pwn-0.4.400 build_pwn_gem.sh
pwn-0.4.399 build_pwn_gem.sh
pwn-0.4.398 build_pwn_gem.sh
pwn-0.4.396 build_pwn_gem.sh
pwn-0.4.394 build_pwn_gem.sh
pwn-0.4.393 build_pwn_gem.sh
pwn-0.4.391 build_pwn_gem.sh
pwn-0.4.390 build_pwn_gem.sh
pwn-0.4.389 build_pwn_gem.sh
pwn-0.4.388 build_pwn_gem.sh
pwn-0.4.387 build_pwn_gem.sh