Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 603 Bytes
require "lib/wordpress"
namespace :wordpress do
namespace :options do
desc "Serialize the wp-options table to config/wp-options.yml"
task :dump do
Wordpress::Option.dump
end
desc "Load config/wp-options.yml into to the wp-options table"
task :load do
Wordpress::Option.load
end
end
desc "download the latest wordpress and load it in place"
task :update_core do
`curl -L -0 http://wordpress.org/latest.tar.gz > latest.tar.gz && mv public/blog wordpress && tar xvfz latest.tar.gz wordpress && mv wordpress public/blog && rm latest.tar.gz`
end
end