Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
14 lines (11 sloc)
309 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# For some reason the HOME env variable is set to '/home/' (while user is 'hadoop') | |
# It also seems that something has changed since past versions and .bash_profile isn't run | |
HOME=/home/$USER | |
. $HOME/.bash_profile | |
APP_NAME=$1 | |
EXEC=$2 | |
shift 2 | |
PARAMS=$@ | |
cd $APP_NAME | |
bundle exec ./$EXEC $PARAMS |