Sha256: 851b215c9f6ccfd904f7811ae4a5478607c1f60efa4726da34e189c15cf44529
Contents?: true
Size: 824 Bytes
Versions: 70
Compression:
Stored size: 824 Bytes
Contents
#!/bin/bash export BRIEF_PWD=$PWD set -e TARGET_FILE=$0 cd `dirname $TARGET_FILE` TARGET_FILE=`basename $TARGET_FILE` # Iterate down a (possible) chain of symlinks while [ -L "$TARGET_FILE" ] do TARGET_FILE=`readlink $TARGET_FILE` cd `dirname $TARGET_FILE` TARGET_FILE=`basename $TARGET_FILE` done # Compute the canonicalized name by finding the physical path # for the directory we're in and appending the target file. PHYS_DIR=`pwd -P` RESULT=$PHYS_DIR/$TARGET_FILE # Figure out where this script is located. SELFDIR=$(dirname "$RESULT") # Tell Bundler where the Gemfile and gems are. export BUNDLE_GEMFILE="$SELFDIR/lib/app/Gemfile" unset BUNDLE_IGNORE_CONFIG # Run the actual app using the bundled Ruby interpreter. exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$SELFDIR/lib/app/bin/brief" "$@"
Version data entries
70 entries across 70 versions & 1 rubygems