Class: Hist::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/hist/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#bundle_installObject



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_initializersObject



10
11
12
# File 'lib/generators/hist/install_generator.rb', line 10

def copy_initializers
  generate 'hist:initializer'
end

#generate_migration_scriptsObject



14
15
16
# File 'lib/generators/hist/install_generator.rb', line 14

def generate_migration_scripts
  generate 'hist:db'
end

#insert_to_routesObject



18
19
20
# File 'lib/generators/hist/install_generator.rb', line 18

def insert_to_routes
  generate 'hist:routes'
end