Sha256: 87f83b71b375726c235f9979c115357e4fd616d962c9fdb82d2bbaba253f5e7f
Contents?: true
Size: 830 Bytes
Versions: 17
Compression:
Stored size: 830 Bytes
Contents
#!/bin/bash export DATAPIMP_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/datapimp" "$@"
Version data entries
17 entries across 17 versions & 1 rubygems