Skip to content

Instantly share code, notes, and snippets.

@MacksMind
Created March 26, 2013 13:43
Show Gist options
  • Save MacksMind/5245453 to your computer and use it in GitHub Desktop.
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.
#!/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