Class: Crawler::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
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

Examples:

$ rails generate crawler:install

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



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