lib/couch/generators/application/application_generator.rb in couch-0.1.0 vs lib/couch/generators/application/application_generator.rb in couch-0.1.1
- old
+ new
@@ -13,22 +13,29 @@
template "couchrc", ".couchrc"
copy_file "README"
copy_file "gitignore", ".gitignore" unless options[:skip_git]
template "_id.js"
copy_file "validate_doc_update.js"
- empty_directory_with_gitkeep "lists"
- empty_directory_with_gitkeep "shows"
- empty_directory_with_gitkeep "updates"
- empty_directory_with_gitkeep "views"
+ empty_directory "lists"
+ empty_directory "shows"
+ empty_directory "updates"
+ empty_directory "views"
end
def create_attachments_files
empty_directory "_attachments"
inside "_attachments" do
- empty_directory_with_gitkeep "images"
- empty_directory_with_gitkeep "javascripts"
+ empty_directory "images"
+ empty_directory "javascripts"
directory "stylesheets"
template "index.html"
+ end
+ end
+
+ def create_lib_files
+ empty_directory "lib"
+ inside "lib" do
+ copy_file "mustache/mustache.js", "mustache.js"
end
end
protected