Class: BoringServices::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- BoringServices::Generators::InstallGenerator
- Defined in:
- lib/boring_services/generators/boring_services/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_config_file ⇒ Object
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_instructions ⇒ Object
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 |