Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 613 Bytes
task :doc => :rdoc
task :install do |t|
sh 'ruby setup.rb'
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
files = ['README', 'lib/**/*.rb']
rdoc.rdoc_files.add(files)
rdoc.main = "README" # page to start on
rdoc.title = "Batphone"
rdoc.template = "theme/allison/allison.rb"
rdoc.rdoc_dir = 'doc' # rdoc output folder
rdoc.options << '--line-numbers' << '--inline-source'
end
task :sync => [:rdoc] do
sh 'darcs push falcon:public_html/src/batphone'
sh 'rsync -av doc falcon:public_html/src/batphone/'
end
task :default => :rdoc
task :gem do
sh 'gem build batphone.gemspec'
end