Class: BoringServices::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_config_fileObject



8
9
10
# File 'lib/boring_services/generators/boring_services/install_generator.rb', line 8

def create_config_file
  template 'services.yml.erb', 'config/services.yml'
end

#show_instructionsObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/boring_services/generators/boring_services/install_generator.rb', line 12

def show_instructions
  puts "\nāœ… BoringServices installed!"
  puts "\nšŸ“ Next steps:"
  puts '  1. Either:'
  puts '     a) Edit config/services.yml with your service hosts, OR'
  puts '     b) Use Terraform to auto-generate config/services.yml'
  puts '  2. Deploy services: rails boring_services:setup'
  puts '  3. Check status: rails boring_services:status'
  puts "\nšŸ“š Available: Memcached, Redis, HAProxy (SSL), Nginx"
  puts '    See config/services.example.yml in gem for examples'
end