Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 451 Bytes
task :default do
FileUtils.mkdir_p "build"
system "git archive --format=zip --prefix=projektnamn/ HEAD:projektnamn/ > build/nytt_wp-projekt.zip"
end
task :clean do
FileUtils.rm_rf "build"
FileUtils.rm_f ["projektnamn/config/wp-config.php", "projektnamn/wordpress/wp-config.php"]
end
task :test => [:clean] do
FileUtils.mkdir_p "build"
system "git archive --format=tar --prefix=projektnamn/ HEAD:projektnamn/ | (cd build; tar xf -)"
end