Skip to content
Browse files

Add ohm:rocco task, and change ohm:doc.

  • Loading branch information...
1 parent 50349de commit a87b9edf166735b0650147191d8e95f35347aab8 @soveran soveran committed Oct 1, 2010
Showing with 15 additions and 2 deletions.
  1. +15 −2 Thorfile
View
17 Thorfile
@@ -3,9 +3,17 @@
class OhmTasks < Thor
namespace :ohm
- desc "doc", "Generate YARD documentation"
+ desc "doc", "Generate documentation"
method_options :open => false
def doc
+ invoke :yard
+ invoke :rocco
+
+ system "open doc/index.html" if options[:open]
+ end
+
+ desc "yard", "Generate YARD documentation"
+ def yard
require "yard"
opts = []
@@ -34,8 +42,13 @@ class OhmTasks < Thor
File.open(file, "w") { |f| f.write(contents) }
end
+ end
- system "open doc/index.html" if options[:open]
+ desc "rocco", "Generate ROCCO documentation"
+ def rocco
+ `mkdir doc/examples` unless Dir.exists?("doc/examples")
+ `rocco examples/*.*`
+ `mv examples/*.html doc/examples`
end
desc "deploy", "Deploy documentation"

0 comments on commit a87b9ed

Please sign in to comment.
Something went wrong with that request. Please try again.