Class: Orchestration::DockerCompose::InstallGenerator
- Inherits:
-
Object
- Object
- Orchestration::DockerCompose::InstallGenerator
- Includes:
- FileHelpers
- Defined in:
- lib/orchestration/docker_compose/install_generator.rb
Instance Method Summary collapse
- #docker_compose_deployment_yml ⇒ Object
- #docker_compose_development_yml ⇒ Object
- #docker_compose_test_yml ⇒ Object
- #enabled_services(environment) ⇒ Object
-
#initialize(env, terminal) ⇒ InstallGenerator
constructor
A new instance of InstallGenerator.
Constructor Details
#initialize(env, terminal) ⇒ InstallGenerator
Returns a new instance of InstallGenerator.
8 9 10 11 |
# File 'lib/orchestration/docker_compose/install_generator.rb', line 8 def initialize(env, terminal) @env = env @terminal = terminal end |
Instance Method Details
#docker_compose_deployment_yml ⇒ Object
21 22 23 |
# File 'lib/orchestration/docker_compose/install_generator.rb', line 21 def docker_compose_deployment_yml create_compose_file(:deployment) end |
#docker_compose_development_yml ⇒ Object
17 18 19 |
# File 'lib/orchestration/docker_compose/install_generator.rb', line 17 def docker_compose_development_yml create_compose_file(:development) end |
#docker_compose_test_yml ⇒ Object
13 14 15 |
# File 'lib/orchestration/docker_compose/install_generator.rb', line 13 def docker_compose_test_yml create_compose_file(:test) end |
#enabled_services(environment) ⇒ Object
25 26 27 |
# File 'lib/orchestration/docker_compose/install_generator.rb', line 25 def enabled_services(environment) service_names(environment).select { |name| service_enabled?(name) } end |