Class: Claude::Generators::RuleGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/claude/rule/rule_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_rule_fileObject



15
16
17
# File 'lib/generators/claude/rule/rule_generator.rb', line 15

def create_rule_file
  template "rule.md.tt", rule_path
end

#show_instructionsObject



19
20
21
22
23
24
25
26
27
# File 'lib/generators/claude/rule/rule_generator.rb', line 19

def show_instructions
  say "\nRule '#{file_name}' created successfully!", :green
  say "\nLocation: #{rule_path}", :blue
  say "\nScope: #{rule_scope}", :yellow
  say "\nNext steps:", :yellow
  say "  1. Edit #{rule_path} to add your project rules"
  say "  2. The rule will be auto-loaded by Claude"
  say "  3. Claude will follow these rules when working in the specified paths\n"
end