public
Description: A simple and easy to use generator system for Ruby
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/genosaurus.git
Search Repo:
Now raising an exception if unable to figure out the 
templates_directory_path and manifest_path dynamically. Also fixed the 
damn empty git problem. [#1 state:resolved]
markbates (author)
Wed May 14 21:07:06 -0700 2008
commit  80a1b8e7d9d54655dd9eee4f9401e9d17e6f48bb
tree    6738eb967912badfb5da84f546c5e699a410eda3
parent  75fa6bd1f3e4fbae3973864c7b613bc05c2bd774
...
35
36
37
38
39
40
 
 
 
41
42
43
...
35
36
37
 
 
38
39
40
41
42
43
44
0
@@ -35,9 +35,10 @@
0
       if f.match(/#{@generator_name_underscore}\.rb$/)
0
         @templates_directory_path = File.join(File.dirname(f), "templates")
0
         @manifest_path = File.join(File.dirname(f), "manifest.yml")
0
- else
0
- raise "Unable to dynamically figure out your templates_directory_path and manifest_path! Please implement these methods and let Genosaurus know where to find these things. Thanks."
0
       end
0
+ end
0
+ if @templates_directory_path.nil? || @manifest_path.nil?
0
+ raise "Unable to dynamically figure out your templates_directory_path and manifest_path! Please implement these methods and let Genosaurus know where to find these things. Thanks."
0
     end
0
     setup
0
   end
...
6
7
8
 
9
10
11
...
6
7
8
9
10
11
12
0
@@ -6,6 +6,7 @@
0
 
0
 if $genosaurus_output_directory.nil?
0
   $genosaurus_output_directory = File.join(FileUtils.pwd, "tmp")
0
+ FileUtils.mkdir_p($genosaurus_output_directory)
0
 end
0
 
0
 puts "$genosaurus_output_directory: #{$genosaurus_output_directory}"

Comments

    No one has commented yet.