Signed-off-by: James Turnbull <[email protected]>
---
 Rakefile |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/Rakefile b/Rakefile
index 71f1cca..31a36dd 100644
--- a/Rakefile
+++ b/Rakefile
@@ -119,10 +119,20 @@ end
 # Puppet Labs Only:
 # DISABLED FOR NOW, not the right location
 
-#desc "Release the documentation (Puppet Labs Only)"
-#task :release do
-#  sh "rsync -e ssh -avz output/ [email protected]:/var/www/docs/html"
-#end
+desc "Release the documentation (Puppet Labs Only)"
+task :release do
+  branch = "release"
+  sh "git checkout master"
+  sh "git branch -f #{branch}"
+  sh "git checkout #{branch}"
+  Rake::Task['generate'].invoke
+  FileUtils.cd 'output'
+  sh "git add *"
+  sh "git commit -a -m 'Released Puppet Documentation'"
+  sh "git branch -D -r origin/#{branch}"
+  sh "git push --force origin #{branch}"
+  sh "git checkout master"
+end
 
 #require 'spec/rake/spectask'
 #Spec::Rake::SpecTask.new(:spec) do |spec|
-- 
1.6.6.1

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to