Class: Panda::Core::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Panda::Core::Generators::InstallGenerator
- Defined in:
- lib/generators/panda/core/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
11 12 13 |
# File 'lib/generators/panda/core/install_generator.rb', line 11 def copy_initializer template "panda.rb", "config/initializers/panda.rb" end |
#copy_migrations ⇒ Object
15 16 17 |
# File 'lib/generators/panda/core/install_generator.rb', line 15 def copy_migrations rake "panda_core:install:migrations" end |
#show_readme ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/generators/panda/core/install_generator.rb', line 19 def show_readme say "" say "Panda Core installed!", :green say "" say "Next steps:" say " 1. Edit config/initializers/panda.rb to configure authentication" say " 2. Run: rails db:migrate" say " 3. Add gem 'panda-cms' to your Gemfile for CMS functionality" say "" end |