Skip to content

Commit

Permalink
Push the guides
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Mar 5, 2009
1 parent dfef3d8 commit 713b9c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions railties/Rakefile
Expand Up @@ -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."
Expand Down

0 comments on commit 713b9c6

Please sign in to comment.