Permalink
Browse files

Added OUTPUT_DIR option to api task

  • Loading branch information...
1 parent 7ad9033 commit 5d024064553ef476b08a99a72522afefd0a49d9d @mjackson committed May 12, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 Rakefile
View
@@ -13,10 +13,11 @@ end
desc "Generate API documentation"
task :api => FileList['lib/**/*.rb'] do |t|
- rm_rf 'api'
+ output_dir = ENV['OUTPUT_DIR'] || 'api'
+ rm_rf output_dir
sh((<<-SH).gsub(/[\s\n]+/, ' ').strip)
hanna
- --op api
+ --op #{output_dir}
--promiscuous
--charset utf8
--fmt html

0 comments on commit 5d02406

Please sign in to comment.