Skip to content

Commit

Permalink
task :publish_rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Jun 24, 2010
1 parent 2c391c3 commit cc72f29
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Rakefile
Expand Up @@ -88,7 +88,7 @@ end


desc "Remove any temporary products, including gemspec." desc "Remove any temporary products, including gemspec."
task :clean => [:clobber] do task :clean => [:clobber] do
rm "#{spec.name}.gemspec" rm "#{spec.name}.gemspec" if File.file?("#{spec.name}.gemspec")
end end


desc "Remove any generated file" desc "Remove any generated file"
Expand Down Expand Up @@ -127,6 +127,13 @@ rescue LoadError
puts "CodeStatistics (Rails) is not available" puts "CodeStatistics (Rails) is not available"
end 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| Dir["tasks/**/*.rake"].each do |file|
load(file) load(file)
end end

0 comments on commit cc72f29

Please sign in to comment.