Created
January 16, 2009 00:51
-
-
Save beastaugh/47744 to your computer and use it in GitHub Desktop.
WordPress upgrade script
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
#!/usr/bin/env ruby | |
require 'pathname' | |
CRUFT = %w{index.php license.txt readme.html wp-content/plugins/hello.php} | |
SITES = %w{tarskitheme.com extralogical.net}.map do |path| | |
Pathname.new(ENV['HOME']) + "public_html" + path + "public/wp" | |
end | |
SITES.each do |site| | |
`svn update #{site}` # Update WordPress | |
CRUFT.each {|file| `rm #{site + file}` } # Remove unwanted files | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment