forked from jamesgolick/resource_controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
22 lines (18 loc) · 679 Bytes
/
Rakefile
File metadata and controls
22 lines (18 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Dir.chdir('test')
load 'Rakefile'
desc 'Generate documentation for the ResourceController plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = '../rdoc'
rdoc.title = 'ResourceController'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('../README.rdoc')
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/resource_controller/rdoc'`
puts "Uploading current rdoc"
`scp -r ../rdoc jamesgolick.com:/home/apps/jamesgolick.com/public/resource_controller`
puts "Deleting rdoc"
`rm -Rf ../rdoc`
end