Class: Hist::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hist::InstallGenerator
- Defined in:
- lib/generators/hist/install_generator.rb
Instance Method Summary collapse
- #bundle_install ⇒ Object
- #copy_initializers ⇒ Object
- #generate_migration_scripts ⇒ Object
- #insert_to_routes ⇒ Object
Instance Method Details
#bundle_install ⇒ Object
22 23 24 25 26 |
# File 'lib/generators/hist/install_generator.rb', line 22 def bundle_install Bundler.with_clean_env do run 'bundle install' end end |
#copy_initializers ⇒ Object
10 11 12 |
# File 'lib/generators/hist/install_generator.rb', line 10 def copy_initializers generate 'hist:initializer' end |
#generate_migration_scripts ⇒ Object
14 15 16 |
# File 'lib/generators/hist/install_generator.rb', line 14 def generate_migration_scripts generate 'hist:db' end |
#insert_to_routes ⇒ Object
18 19 20 |
# File 'lib/generators/hist/install_generator.rb', line 18 def insert_to_routes generate 'hist:routes' end |