#!/bin/bash

BUNDLE_GEMFILE=${BUNDLE_GEMFILE:-Gemfile}

if [ -f "$1/$BUNDLE_GEMFILE" ]; then
  SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  echo "ruby $(cat $SCRIPT_DIR/../VERSION)"
  exit 0
else
  echo "no"
  exit 1
fi
