Class: Yoker::Generators::Container::DockerCompose

Inherits:
Object
  • Object
show all
Defined in:
lib/yoker/generators/container/docker_compose.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, shell) ⇒ DockerCompose

Returns a new instance of DockerCompose.



9
10
11
12
# File 'lib/yoker/generators/container/docker_compose.rb', line 9

def initialize(config, shell)
  @config = config
  @shell = shell
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



7
8
9
# File 'lib/yoker/generators/container/docker_compose.rb', line 7

def config
  @config
end

#shellObject (readonly)

Returns the value of attribute shell.



7
8
9
# File 'lib/yoker/generators/container/docker_compose.rb', line 7

def shell
  @shell
end

Instance Method Details

#generateObject



14
15
16
17
18
19
# File 'lib/yoker/generators/container/docker_compose.rb', line 14

def generate
  generate_compose_file
  generate_dockerfile
  generate_dockerignore
  generate_entrypoint if needs_custom_entrypoint?
end