Sha256: 831b6d9420b4cfe4761912f7b9e0d1912cf8ff8bb4d9f9b0e37846da43c82a52
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
require File.join(File.dirname(__FILE__), "base") module Wellcar module Templates class DockerCompose < Base INIT_TEMPLATE = "docker-compose-init.yml.erb" def initialize(app_name, repo_account, template_name="docker-compose.yml.erb") super "docker-compose.yml" with_attributes app_name: app_name, template_name: template_name, repo_account: repo_account, registry_url: "docker.pkg.github.com" with_template template_name end def image_path [registry_url, repo_account, app_name, "web"].join "/" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wellcar-0.0.3 | lib/wellcar/templates/docker_compose.rb |
wellcar-0.0.2 | lib/wellcar/templates/docker_compose.rb |
wellcar-0.0.1 | lib/wellcar/templates/docker_compose.rb |