Permalink
Browse files

add `each-gemfile` script

  • Loading branch information...
1 parent 6e6cca4 commit 61c9f49a918824a52a858df957c1ed2d4b6a2067 @mislav committed Feb 6, 2013
Showing with 11 additions and 0 deletions.
  1. +11 −0 script/each-gemfile
View
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+set -e
+
+if [ -z "$1" ]; then
+ echo "Usage: script/each-bundle COMMAND [<ARGS>]" >&2
+ exit 1
+fi
+
+for gemfile in $(ls Gemfile* | grep -v lock); do
+ BUNDLE_GEMFILE=$gemfile "$@"
+done

0 comments on commit 61c9f49

Please sign in to comment.