Class: Crawler::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Crawler::InstallGenerator
- Defined in:
- lib/generators/crawler/install/install_generator.rb
Overview
TODO:
Revisit in Rails 3.1 where public assets are treated differently
Copies database migration files
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
14 15 16 17 18 |
# File 'lib/generators/crawler/install/install_generator.rb', line 14 def copy_files source = File.join(File.dirname(__FILE__),'..','..', '..', '..', 'db') destination = File.join(Rails.root, 'db') Crawler::FileUtilz.mirror_files(source, destination) end |