Skip to content
Browse files

add rdoc tasks

  • Loading branch information...
1 parent a7bb9eb commit 3102595456d3a23f4258be3221b474488f7c82bb @jamesgolick committed Jul 27, 2008
Showing with 19 additions and 9 deletions.
  1. +0 −9 Rakefile
  2. +19 −0 lib/tasks/doc.rake
View
9 Rakefile
@@ -8,12 +8,3 @@ task :default => :test
task :test do
Dir['test/**/*_test.rb'].each { |l| require l }
end
-
-desc 'Generate documentation for the ResourceController plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'ActivePresenter'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
View
19 lib/tasks/doc.rake
@@ -0,0 +1,19 @@
+desc 'Generate documentation for the ResourceController plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'ActivePresenter'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+task :upload_docs => :rdoc do
+ puts 'Deleting previous rdoc'
+ `ssh jamesgolick.com 'rm -Rf /home/apps/jamesgolick.com/public/active_presenter/rdoc'`
+
+ puts "Uploading current rdoc"
+ `scp -r rdoc jamesgolick.com:/home/apps/jamesgolick.com/public/active_presenter/rdoc`
+
+ puts "Deleting rdoc"
+ `rm -Rf rdoc`
+end

0 comments on commit 3102595

Please sign in to comment.
Something went wrong with that request. Please try again.