Class: AppyantraAdmin::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#installObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/generators/appyantra_admin/install/install_generator.rb', line 6

def install
  #copy_initializer
  template "appyantra_admin.rb", "config/initializers/appyantra_admin.rb"
  puts "Copying migrations..."
  copy_migrations
  add_appyantra_admin_routes
  puts "After running the migrations, you need to do the following: "
  puts "(1) Modify the initializer configurations --> config/initializers/appyantra_admin.rb"
  puts "(2) Run Migrations"
  puts "(3) Create an admin user by running:"
  puts "rake appyantra_admin:create_admin email='EMAIL' first_name='FIRST_NAME' last_name='LAST_NAME'"
  puts "(4) Create basic application settings by running:"
  puts "rake appyantra_admin:setup_admin"
  puts "(5) Delete public/index.html"
end