Permalink
Browse files

Push the guides

  • Loading branch information...
1 parent dfef3d8 commit 713b9c6a1b00492db72f61896118264306c6de71 @dhh dhh committed Mar 5, 2009
Showing with 6 additions and 3 deletions.
  1. +6 −3 railties/Rakefile
View
@@ -344,9 +344,12 @@ task :pgem => [:gem] do
`ssh gems.rubyonrails.org '/u/sites/gems/gemupdate.sh'`
end
-desc "Publish the API documentation"
-task :pdoc => :rdoc do
- # railties API isn't separately published
+desc "Publish the guides"
+task :pguides => :guides do
+ mkdir_p 'pkg'
+ `tar -czf pkg/guides.gz guides/output`
+ Rake::SshFilePublisher.new("web.rubyonrails.org", "/u/sites/guides.rubyonrails.org/public", "pkg", "guides.gz").upload
+ `ssh web.rubyonrails.org 'cd /u/sites/guides.rubyonrails.org/public/ && tar -xvzf guides.gz && mv guides/output/* . && rm -rf guides*'`
end
desc "Publish the release files to RubyForge."

0 comments on commit 713b9c6

Please sign in to comment.