Browse code

Moved opening braces

Bodo Tasche authored on 12/06/2011 at 21:16:47
Showing 1 changed files
... ...
@@ -1,17 +1,15 @@
1 1
 # This plugin is based on https://github.com/gma/bundler-exec
2
-# modify the BUNDLED_COMMANDS if needed
2
+# modify the bundled_commands if needed
3 3
 
4 4
 bundled_commands=(cucumber heroku rackup rails rake rspec ruby shotgun spec spork)
5 5
 
6 6
 ## Functions
7 7
 
8
-_bundler-installed()
9
-{
8
+_bundler-installed() {
10 9
     which bundle > /dev/null 2>&1
11 10
 }
12 11
 
13
-_within-bundled-project()
14
-{
12
+_within-bundled-project() {
15 13
     local check_dir=$PWD
16 14
     while [ "$(dirname $check_dir)" != "/" ]; do
17 15
         [ -f "$check_dir/Gemfile" ] && return
... ...
@@ -20,8 +18,7 @@ _within-bundled-project()
20 20
     false
21 21
 }
22 22
 
23
-_run-with-bundler()
24
-{
23
+_run-with-bundler() {
25 24
     local command="$1"
26 25
     shift
27 26
     if _bundler-installed && _within-bundled-project; then