Class: RailsExecution::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RailsExecution::Generators::InstallGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/rails_execution/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config ⇒ Object
20 21 22 |
# File 'lib/generators/rails_execution/install_generator.rb', line 20 def copy_config template 'config.rb', 'config/initializers/rails_execution.rb' end |
#copy_migration ⇒ Object
16 17 18 |
# File 'lib/generators/rails_execution/install_generator.rb', line 16 def copy_migration migration_template 'install.rb', 'db/migrate/install_execution.rb', migration_version: migration_version end |
#mount_engine ⇒ Object
24 25 26 |
# File 'lib/generators/rails_execution/install_generator.rb', line 24 def mount_engine route "mount RailsExecution::Engine, at: 'execution'" end |