Sha256: cb36350c43e185834ee632bf01acd8a060da87e76474d129211dbb593481c46e

Contents?: true

Size: 599 Bytes

Versions: 3

Compression:

Stored size: 599 Bytes

Contents

require File.join(File.dirname(__FILE__), "base")

module Wellcar
  module Templates
    class DockerStack < Base
      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

      def image_path
        [registry_url, repo_account, app_name, "web"].join "/"
      end
      
      def proxy_image_path
        [registry_url, repo_account, app_name, "nginx"].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_stack.rb
wellcar-0.0.2 lib/wellcar/templates/docker_stack.rb
wellcar-0.0.1 lib/wellcar/templates/docker_stack.rb