Sha256: 5ae9482fa7df690a844dba1c7c5668cf0ca2f558aa239574f2179fc88a6c2592

Contents?: true

Size: 484 Bytes

Versions: 3

Compression:

Stored size: 484 Bytes

Contents

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

module Wellcar
  module Templates
    class BuildProductionImage < Base
      def initialize(app_name, repo_account)
        super "build-production-image.yml"
        with_attributes app_name: app_name, repo_account: repo_account
        with_template "build-production-image.yml.erb"
        within ".github/workflows"
      end

      def repository_base_path
        [repo_account, app_name].join "/"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wellcar-0.0.3 lib/wellcar/templates/build_production_image.rb
wellcar-0.0.2 lib/wellcar/templates/build_production_image.rb
wellcar-0.0.1 lib/wellcar/templates/build_production_image.rb