Class: Backstage::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Backstage::Generators::InstallGenerator
- Defined in:
- lib/generators/backstage/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config ⇒ Object
8 9 10 |
# File 'lib/generators/backstage/install/install_generator.rb', line 8 def copy_config copy_file "backstage.yml", "config/backstage.yml" end |
#copy_skill ⇒ Object
12 13 14 |
# File 'lib/generators/backstage/install/install_generator.rb', line 12 def copy_skill copy_file "SKILL.md", ".claude/skills/backstage-install.md" end |
#mount_engine ⇒ Object
16 17 18 |
# File 'lib/generators/backstage/install/install_generator.rb', line 16 def mount_engine route 'mount Backstage::Engine, at: "/admin"' end |
#print_instructions ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/generators/backstage/install/install_generator.rb', line 20 def print_instructions say "\nBackstage installed!", :green say " 1. Edit config/backstage.yml to list your models" say " 2. Wire up current_user in config/initializers/backstage.rb" say " 3. Visit /admin" say "\n Tip: run /backstage-install in Claude Code for a guided setup walkthrough\n" end |