Sha256: e281dd260fdbe58bf98aa49c9edd54667999e85ce829efbba39b05391ee8839c

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

#!/bin/bash

set -e

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

# Tell Bundler where the Gemfile and gems are.
# IMPORTANT: the Gemfile must be in the same bundled/gems folder
export BUNDLE_GEMFILE="$PROJECTDIR/bundled/gems/Gemfile"
unset BUNDLE_IGNORE_CONFIG

# Run the actual app using the bundled Ruby interpreter, with Bundler activated.
os=$(uname)
if [[ "$os" == 'Darwin' ]]; then
  # used macosx ruby for development
  exec lam "$@"
else
  # used bundled ruby for Lambda
  exec "$PROJECTDIR/bundled/ruby/bin/ruby" -rbundler/setup "$PROJECTDIR/bundled/gems/ruby/2.2.0/bin/lam" "$@"
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lam-0.1.2 spec/fixtures/project/bin/lam