oga/task/doc.rake

16 lines
412 B
Ruby
Raw Normal View History

2014-07-22 19:29:16 +00:00
desc 'Generates YARD documentation'
task :doc => :generate do
sh 'yard'
end
2014-09-10 22:10:58 +00:00
desc 'Generates and uploads the documentation'
task :upload_doc => :doc do
root_dir = "/srv/http/code.yorickpeterse.com/public/oga"
version_dir = File.join(root_dir, Oga::VERSION)
sh "scp -r yardoc europa:#{version_dir}"
sh "ssh europa 'rm -f #{root_dir}/latest " \
"&& ln -s #{version_dir} #{root_dir}/latest'"
end