Created
March 26, 2013 13:43
-
-
Save MacksMind/5245453 to your computer and use it in GitHub Desktop.
Shell script to help move Rails 2.3 style plugins to the approved location.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in "$@" | |
do | |
git mv vendor/plugins/$i/lib lib/$i | |
git mv vendor/plugins/$i/init.rb config/initializers/$i.rb | |
git rm -r vendor/plugins/$i || rmdir vendor/plugins/$i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment