Skip to content

Commit

Permalink
Reorganize directories.
Browse files Browse the repository at this point in the history
modules path became cellar. It will be used for modules and to have only
one path with linked binaries.
  • Loading branch information
juanibiapina committed Jun 24, 2014
1 parent dfa15b6 commit 919c72e
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
modules/
cellar/
File renamed without changes.
Empty file added cellar/bin/.gitkeep
Empty file.
Empty file added cellar/modules/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion libexec/basher-install
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ if [ -z "$module" ]; then
exit 1
fi

git clone "git://github.com/$username/$module.git" "$BASHER_ROOT/modules/$module"
git clone "git://github.com/$username/$module.git" "$BASHER_ROOT/cellar/modules/$module"
2 changes: 1 addition & 1 deletion runtime/require.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

require() {
local module_name="$1"
source "$BASHER_ROOT/modules/$module_name/lib/$module_name.bash"
source "$BASHER_ROOT/cellar/modules/$module_name/lib/$module_name.bash"
}
2 changes: 1 addition & 1 deletion tests/basher-install.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ load test_helper

run basher-install username module
assert_success
assert_line "git clone git://github.com/username/module.git $BASHER_ROOT/modules/module"
assert_line "git clone git://github.com/username/module.git $BASHER_ROOT/cellar/modules/module"
}

0 comments on commit 919c72e

Please sign in to comment.