Skip to content

Instantly share code, notes, and snippets.

@dillonhafer
Created March 18, 2014 21:32
Show Gist options
  • Save dillonhafer/9630202 to your computer and use it in GitHub Desktop.
Save dillonhafer/9630202 to your computer and use it in GitHub Desktop.
A simple install script for zipping WordPress Plugins
task :default do
puts "\033[01;32m---->\033[00m\ Zipping \033[01;33m#{Dir.pwd}\033[00m\ into \033[01;33m#{Dir.pwd}.zip\033[00m\ "
%x{mkdir -p install}
%x{zip -r install/#{File.basename(Dir.getwd)}.zip . --exclude=*.git* --exclude=*install*}
puts " Done. 📦"
end
@dillonhafer
Copy link
Author

Simple type rake from the project root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment