Class: Dockerfile::NodeJS
Overview
Wrapper for templating of NodeJS Dockerfile
Instance Attribute Summary collapse
-
#node_version ⇒ Object
Returns the value of attribute node_version.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ NodeJS
constructor
A new instance of NodeJS.
- #required_attributes ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ NodeJS
Returns a new instance of NodeJS.
10 11 12 |
# File 'lib/dockerfile/node_js.rb', line 10 def initialize @template = dockerfile end |
Instance Attribute Details
#node_version ⇒ Object
Returns the value of attribute node_version.
8 9 10 |
# File 'lib/dockerfile/node_js.rb', line 8 def node_version @node_version end |
Instance Method Details
#required_attributes ⇒ Object
4 5 6 |
# File 'lib/dockerfile/node_js.rb', line 4 def required_attributes super + [:node_version] end |