Class: Wellcar::Templates::Dockerfile

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

Instance Method Summary collapse

Methods inherited from Base

#exist?, #render, #write

Constructor Details

#initialize(ruby_version, app_name, use_bundler_2 = false) ⇒ Dockerfile

Returns a new instance of Dockerfile.


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

def initialize(ruby_version, app_name, use_bundler_2=false)
  super "Dockerfile"
  with_attributes ruby_version: ruby_version, app_name: app_name, use_bundler_2: use_bundler_2
  with_template "dockerfile.erb"
end