Class: BcmsContentRotator::InstallGenerator
- Inherits:
-
Cms::ModuleInstallation
- Object
- Cms::ModuleInstallation
- BcmsContentRotator::InstallGenerator
- Defined in:
- lib/generators/bcms_content_rotator/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_seed_data_to_project ⇒ Object
10 11 12 13 |
# File 'lib/generators/bcms_content_rotator/install/install_generator.rb', line 10 def add_seed_data_to_project copy_file "../bcms_content_rotator.seeds.rb", "db/bcms_content_rotator.seeds.rb" append_to_file "db/seeds.rb", "load File.expand_path('../bcms_content_rotator.seeds.rb', __FILE__)" end |
#copy_migrations ⇒ Object
6 7 8 |
# File 'lib/generators/bcms_content_rotator/install/install_generator.rb', line 6 def copy_migrations rake 'bcms_content_rotator:install:migrations' end |