Sha256: ed9e1caa3ad0a12747cac9033ebf662b08e2fe804f0a03c9d263460ef48c6ce2
Contents?: true
Size: 1023 Bytes
Versions: 5
Compression:
Stored size: 1023 Bytes
Contents
#!/bin/bash set -e ! which rvm && echo "Sorry, but this script only works with RVM" && exit 1 [[ -z $GEM_HOME ]] && echo "You need to have \$GEM_HOME set before continuing." && exit 1 GEMS=$GEM_HOME/gems echo Gems detected at: $GEMS which faastruby && echo "Removing all installed versions" && gem uninstall -a -I -x faastruby echo "Cleaning up stale links" rm -f $GEMS/faastruby-0* echo "Building gem from source" VERSION=$(gem build faastruby.gemspec |grep Version|cut -f4 -d" ") echo "Installing new gem" gem install faastruby-$VERSION.gem SOURCECODE=$PWD INSTALL_DIR=$GEMS/faastruby-$VERSION echo -e "\n\nThe directory below is about to be removed. Press ENTER to continue or CTRL+C to abort." echo $INSTALL_DIR read rm -rf $INSTALL_DIR echo "Creating symlink $INSTALL_DIR -> $SOURCECODE" ln -s $SOURCECODE $INSTALL_DIR echo "Running 'faastruby -v'" faastruby -v touch ".test" [[ -e $INSTALL_DIR/.test ]] && rm .test && echo Done && exit 0 rm -f .test echo "ERROR: The symbolik link $INSTALL_DIR is not working." exit 1
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
faastruby-0.5.30 | dev-setup.sh |
faastruby-0.5.29 | dev-setup.sh |
faastruby-0.5.28 | dev-setup.sh |
faastruby-0.5.27 | dev-setup.sh |
faastruby-0.5.26 | dev-setup.sh |