Class: Wellcar::Templates::BuildProductionImage

Inherits:
Base
  • Object
show all
Defined in:
lib/wellcar/templates/build_production_image.rb

Instance Method Summary collapse

Methods inherited from Base

#exist?, #render, #write

Constructor Details

#initialize(app_name, repo_account) ⇒ BuildProductionImage

Returns a new instance of BuildProductionImage.



6
7
8
9
10
11
# File 'lib/wellcar/templates/build_production_image.rb', line 6

def initialize(app_name, )
  super "build-production-image.yml"
  with_attributes app_name: app_name, repo_account: 
  with_template "build-production-image.yml.erb"
  within ".github/workflows"
end

Instance Method Details

#repository_base_pathObject



13
14
15
# File 'lib/wellcar/templates/build_production_image.rb', line 13

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