diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2009-03-05 12:20:00 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-03-05 12:20:00 +0100 |
commit | 713b9c6a1b00492db72f61896118264306c6de71 (patch) | |
tree | bd05dc721c764dd5d9ec105696a4fd09050cc464 | |
parent | dfef3d8b14b5d3dcb61d83c30d5d5b27d33ff530 (diff) | |
download | rails-713b9c6a1b00492db72f61896118264306c6de71.tar.gz rails-713b9c6a1b00492db72f61896118264306c6de71.tar.bz2 rails-713b9c6a1b00492db72f61896118264306c6de71.zip |
Push the guides
-rw-r--r-- | railties/Rakefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 0250cc72a5..4b524f1c6f 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -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." |