Class: Messhy::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_config_fileObject



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

def create_config_file
  template 'mesh.yml.erb', 'config/mesh.yml'
  ensure_secrets_gitignored
end

#show_instructionsObject



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

def show_instructions
  puts "\nāœ… Messhy installed!"
  puts "\nšŸ“ Next steps:"
  puts '  1. Either:'
  puts '     a) Edit config/mesh.yml with your server IPs, OR'
  puts '     b) Use Terraform to auto-generate config/mesh.yml'
  puts '  2. Deploy VPN mesh: rails messhy:setup'
  puts '  3. Check health: rails messhy:health'
  puts "\nšŸ“¦ WireGuard private keys will be stored in .secrets/wireguard (gitignored)."
  puts '   Copy those YAML files into 1Password or your preferred vault after setup.'
  puts "\nšŸ“š See config/mesh.example.yml in gem for examples"
end