Class: Wellcar::Templates::DockerStack
- Defined in:
- lib/wellcar/templates/docker_stack.rb
Instance Method Summary collapse
- #image_path ⇒ Object
-
#initialize(app_name, repo_account) ⇒ DockerStack
constructor
A new instance of DockerStack.
- #proxy_image_path ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(app_name, repo_account) ⇒ DockerStack
Returns a new instance of DockerStack.
6 7 8 9 10 11 12 |
# File 'lib/wellcar/templates/docker_stack.rb', line 6 def initialize(app_name, repo_account) super "docker-stack.yml" with_attributes app_name: app_name, repo_account: repo_account, registry_url: "docker.pkg.github.com" with_template "docker-stack.yml.erb" end |
Instance Method Details
#image_path ⇒ Object
14 15 16 |
# File 'lib/wellcar/templates/docker_stack.rb', line 14 def image_path [registry_url, repo_account, app_name, "web"].join "/" end |
#proxy_image_path ⇒ Object
18 19 20 |
# File 'lib/wellcar/templates/docker_stack.rb', line 18 def proxy_image_path [registry_url, repo_account, app_name, "nginx"].join "/" end |