Sha256: 344a1b71fe772ec8dba7112547032c09141b500c3ddf57eed9335e6524b166c4

Contents?: true

Size: 772 Bytes

Versions: 5

Compression:

Stored size: 772 Bytes

Contents

#!/bin/bash
set -e

#####
# $1: $CDIR
# $2: $TMPDIR
# $3: __RUBY_COMMAND__
# $4: __IS_RAILS__
#####

# Figure out where this script is located.
SELFDIR="`dirname \"$0\"`"
SELFDIR="`cd \"$SELFDIR\" && pwd`"
cd $SELFDIR/lib/app/

## GEMFILE
if [ -f "$SELFDIR/lib/vendor/Gemfile" ]
then
  # Tell Bundler where the Gemfile and gems are.
  export BUNDLE_GEMFILE="$SELFDIR/lib/vendor/Gemfile"
  unset BUNDLE_IGNORE_CONFIG

  # Run the actual app using the bundled Ruby interpreter, with Bundler activated.
  if $4; then
    export RAILS_ENV=production
    $SELFDIR/lib/ruby/bin/ruby -rbundler/setup "bin/rails" server
  else
    $SELFDIR/lib/ruby/bin/ruby -rbundler/setup "$3" $ARGV
  fi
else
  $SELFDIR/lib/ruby/bin/ruby "$3"
fi

# Remove tmp directory
cd $CDIR
rm -rf $TMPDIR

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rb2exe-0.3.1 bin/installer
rb2exe-0.3.0 bin/installer
rb2exe-0.2.5 bin/installer
rb2exe-0.2.4 bin/installer
rb2exe-0.2.3 bin/installer