Class: Wellcar::Templates::DockerfileInit
- Defined in:
- lib/wellcar/templates/dockerfile_init.rb
Instance Method Summary collapse
-
#initialize(ruby_version, app_name) ⇒ DockerfileInit
constructor
A new instance of DockerfileInit.
- #skips ⇒ Object
Methods inherited from Base
Constructor Details
permalink #initialize(ruby_version, app_name) ⇒ DockerfileInit
Returns a new instance of DockerfileInit.
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
permalink #skips ⇒ Object
[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 |