public
Description: Life On The Edge With Merb, DataMapper & RSpec
Homepage: http://blog.new-bamboo.co.uk
Clone URL: git://github.com/deimos1986/book_mdar.git
Search Repo:
fixed the rake publish task
mattetti (author)
Sat Apr 26 23:59:30 -0700 2008
commit  9f0d765e96cf338e5ceed5356177492f8f4cae3f
tree    c35586f77d26aaf95faba2fffd62477f428099aa
parent  18272d0d926efb56f2fa1e3ca56d2955a071d3da
...
58
59
60
61
 
62
 
63
64
65
66
67
68
 
69
 
70
71
72
...
85
86
87
 
 
 
 
 
 
88
...
58
59
60
 
61
62
63
64
65
66
67
68
 
69
70
71
72
73
74
...
87
88
89
90
91
92
93
94
95
96
0
@@ -58,15 +58,17 @@
0
   end
0
 end
0
 
0
-# crate an html output
0
+# create an html output
0
 def html
0
+ create_output_folder
0
   book = default_book
0
   log 'Processing HTML format...'
0
   book.html!
0
 end
0
 
0
-# crate a plain text output
0
+# create a plain text output
0
 def plain_text
0
+ create_output_folder
0
   book = default_book
0
   log 'Processing Plain Text format...'
0
   book.plain_text!
0
@@ -85,5 +87,11 @@
0
 
0
 def default_book
0
   BookBuilder::Book.new('merb_book','./book/', :markdown)
0
+end
0
+
0
+# create the output folder if it doesn't exist yet
0
+def create_output_folder
0
+ output_folder = './book/output/'
0
+ Dir.mkdir(output_folder) unless File.directory?(output_folder)
0
 end

Comments

    No one has commented yet.