Class: Backstage::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_configObject



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_skillObject



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_engineObject



16
17
18
# File 'lib/generators/backstage/install/install_generator.rb', line 16

def mount_engine
  route 'mount Backstage::Engine, at: "/admin"'
end


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