Class: Nimbleshop::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#generateObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/generators/nimbleshop/app/install_generator.rb', line 11

def generate
  copy_nimbleshop_yml_file
  copy_initializer_files
  copy_default_gravatar_image

  ensure_no_mass_protection

  copy_migration_files
  execute_db_create
  execute_db_migrate
  execute_db_test_prepare

  mount_engines_for_routing
  delete_public_index_html
  delete_test_dir
end