lib/spontaneous/generators/site.rb in spontaneous-0.2.0.alpha7 vs lib/spontaneous/generators/site.rb in spontaneous-0.2.0.beta1
- old
+ new
@@ -40,23 +40,24 @@
self.destination_root = options[:root]
empty_directory(@site_name)
self.destination_root = self.destination_root / @site_name
directory "config"
directory "schema"
+ directory "lib"
directory "templates"
directory "public"
template "Gemfile.tt", "Gemfile"
template "Capfile.tt", "Capfile"
template "Rakefile.tt", "Rakefile"
- template "lib/site.rb.tt", "lib/site.rb"
- empty_directory "lib/tasks"
+ # template "lib/site.rb.tt", "lib/site.rb"
+ # empty_directory "lib/tasks"
empty_directory "log"
empty_directory "tmp"
empty_directory "cache/media"
empty_directory "cache/tmp"
empty_directory "cache/revisions"
copy_file ".gitignore"
- template "lib/tasks/site.rake.tt", "lib/tasks/#{@site_name}.rake"
+ # template "lib/tasks/site.rake.tt", "lib/tasks/#{@site_name}.rake"
else
@valid = false
say "Invalid database selection '#{options.database}'. Valid options are: #{self.class.available_dbs.keys.join(', ')}", :red
end
end