#!/bin/sh
path=`pwd -P`
for directory in `find $path -maxdepth 1 -type d`; do
  if [ $directory != $path ]; then
    echo -n "$directory  =>  "
    cd $directory || continue
    if [ -f "Gemfile" ]; then
      echo "Installing bundled gems."
      bundle install
    else
      echo "No Gemfile found."
    fi
  fi
done
