Class: TheLocal::Generators::InstallGenerator

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

Overview

‘bin/rails g the_local:install` — installs the locals contributed by the app’s direct dependencies into .claude/agents/, and writes the delegation trigger. A thin wrapper over Refresh, which discovers providers from each bundled gem’s committed agents on disk.

Instance Method Summary collapse

Instance Method Details

#install_localsObject



15
16
17
18
# File 'lib/generators/the_local/install_generator.rb', line 15

def install_locals
  allowed = Refresh.call(destination: destination_root)
  say "the_local: installed locals for #{allowed.join(", ")}", :green
end