Class: Wellcar::Templates::DockerfileInit

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

Instance Method Summary collapse

Methods inherited from Base

#exist?, #render, #write

Constructor Details

#initialize(ruby_version, app_name) ⇒ DockerfileInit

Returns a new instance of DockerfileInit.

[View source]

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

def initialize(ruby_version, app_name)
  super "Dockerfile.init"
  with_attributes ruby_version: ruby_version, app_name: app_name
  with_template "dockerfile_init.erb"
end

Instance Method Details

#skipsObject

[View source]

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

def skips
  skip_on_new = %w(bundle webpack-install test)
  skip_on_new.map {|s| "\"--skip-#{s}\"" }.join(", ")
end