Class: Bscf::Core::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_migrationsObject



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

#finishedObject



21
22
23
# File 'lib/generators/bscf/core/install_generator.rb', line 21

def finished
  say "BSCF Core has been installed successfully!"
end

#mount_engineObject



12
13
14
# File 'lib/generators/bscf/core/install_generator.rb', line 12

def mount_engine
  route "mount Bscf::Core::Engine => '/bscf'"
end

#run_migrationsObject



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