Class: Bscf::Core::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Bscf::Core::InstallGenerator
- Defined in:
- lib/generators/bscf/core/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_migrations ⇒ Object
7 8 9 10 |
# File 'lib/generators/bscf/core/install_generator.rb', line 7 def copy_migrations say_status :copying, "migrations" rake "bscf_core:install:migrations" end |
#finished ⇒ Object
21 22 23 |
# File 'lib/generators/bscf/core/install_generator.rb', line 21 def finished say "BSCF Core has been installed successfully!" end |
#mount_engine ⇒ Object
12 13 14 |
# File 'lib/generators/bscf/core/install_generator.rb', line 12 def mount_engine route "mount Bscf::Core::Engine => '/bscf'" end |
#run_migrations ⇒ Object
16 17 18 19 |
# File 'lib/generators/bscf/core/install_generator.rb', line 16 def run_migrations say_status :running, "migrations" rake "db:migrate" end |