Permalink
Browse files

task :publish_rdoc

  • Loading branch information...
1 parent 2c391c3 commit cc72f29179d619f632421954ce214e2b1064945c @weppos committed Jun 24, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 Rakefile
View
@@ -88,7 +88,7 @@ end
desc "Remove any temporary products, including gemspec."
task :clean => [:clobber] do
- rm "#{spec.name}.gemspec"
+ rm "#{spec.name}.gemspec" if File.file?("#{spec.name}.gemspec")
end
desc "Remove any generated file"
@@ -127,6 +127,13 @@ rescue LoadError
puts "CodeStatistics (Rails) is not available"
end
+desc "Publish documentation to the site"
+task :publish_rdoc => [:clean, :rdoc] do
+ ENV["username"] || raise(ArgumentError, "Missing ssh username")
+ sh "rsync -avz --delete doc/ #{ENV["username"]}@code:/var/www/apps/code/public_suffix_service/api"
+end
+
+
Dir["tasks/**/*.rake"].each do |file|
load(file)
end

0 comments on commit cc72f29

Please sign in to comment.