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