Skip to content

Commit

Permalink
Update bootstrap script to reference Ruby 2.0 and better check Meetup…
Browse files Browse the repository at this point in the history
… creds
  • Loading branch information
tjgrathwell committed Mar 21, 2013
1 parent 8a23351 commit 43e1569
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ fi


if which ruby > /dev/null 2>&1; then
if ! ruby -v | grep '^ruby 1.9.3' > /dev/null; then
echo "You're not using Ruby 1.9.3. You should install or switch to it!"
if ! ruby -v | grep '^ruby 2.0.0' > /dev/null; then
echo "You're not using Ruby 2.0.0. You should install or switch to it!"
fi
else
cat <<'MESSAGE'
Expand All @@ -43,11 +43,16 @@ fi

bundle install || exit $?

if [ -e .env ]; then
source .env
fi

if [ -z "$MEETUP_API_KEY" ]; then
cat <<'MESSAGE'
You don't have Meetup credentials in your environment.
Find your Meetup account's API key at http://www.meetup.com/meetup_api/key/
then add it to your .env file as MEETUP_API_KEY=your_api_key_goes_here
If you want to import events from Meetup, find your Meetup account's API
key at http://www.meetup.com/meetup_api/key/ then add it to your .env file
as MEETUP_API_KEY=your_api_key_goes_here
MESSAGE
fi

Expand Down

0 comments on commit 43e1569

Please sign in to comment.