Rakefile in god-0.12.0 vs Rakefile in god-0.12.1
- old
+ new
@@ -78,21 +78,11 @@
#
# Custom tasks (add your own tasks here)
#
#############################################################################
-desc "Upload site to Rubyforge"
-task :site_old do
- sh "scp -r site/* mojombo@god.rubyforge.org:/var/www/gforge-projects/god"
-end
-
-desc "Upload site to Rubyforge"
-task :site_edge do
- sh "scp -r site/* mojombo@god.rubyforge.org:/var/www/gforge-projects/god/edge"
-end
-
-desc "Generate the new-style site"
+desc "Generate and view the site locally"
task :site do
# Generate the dynamic parts of the site.
puts "Generating dynamic..."
require 'gollum'
wiki = Gollum::Wiki.new('.', :base_path => '/doc')
@@ -105,11 +95,11 @@
puts "Done. Opening in browser..."
sh "open site/index.html"
end
-desc "Generate the new-style site"
+desc "Commit the local site to the gh-pages branch and deploy"
task :site_release do
# Ensure the gh-pages dir exists so we can generate into it.
puts "Checking for gh-pages dir..."
unless File.exist?("./gh-pages")
puts "No gh-pages directory found. Run the following commands first:"
@@ -126,9 +116,10 @@
# Commit the changes
sha = `git log`.match(/[a-z0-9]{40}/)[0]
sh "cd gh-pages && git add . && git commit -m 'Updating to #{sha}.' && git push"
puts 'Done.'
end
+
#############################################################################
#
# Packaging tasks
#
#############################################################################