Modified: MacRuby/trunk/lib/hotcocoa/template.rb (823 => 824)
--- MacRuby/trunk/lib/hotcocoa/template.rb 2009-03-01 02:42:28 UTC (rev 823)
+++ MacRuby/trunk/lib/hotcocoa/template.rb 2009-03-01 03:22:41 UTC (rev 824)
@@ -4,6 +4,7 @@
module HotCocoa
class Template
def self.copy_to(directory, app_name)
+ FileUtils.mkdir_p(directory)
dir = Config::CONFIG['datadir']
Dir.glob(File.join(dir, "hotcocoa_template", "**/*")).each do |file|
short_name = file[(dir.length+19)..-1]
@@ -19,4 +20,4 @@
end
end
end
-end
\ No newline at end of file
+end