Class: Orchestration::DockerCompose::InstallGenerator

Inherits:
Object
  • Object
show all
Includes:
FileHelpers
Defined in:
lib/orchestration/docker_compose/install_generator.rb

Instance Method Summary collapse

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_ymlObject



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_ymlObject



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_ymlObject



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