Class: Dockerfile::NodeJS

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

Overview

Wrapper for templating of NodeJS Dockerfile

Instance Attribute Summary collapse

Attributes inherited from Base

#command, #template

Instance Method Summary collapse

Methods inherited from Base

#render, #run

Constructor Details

#initializeNodeJS

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_versionObject

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_attributesObject



4
5
6
# File 'lib/dockerfile/node_js.rb', line 4

def required_attributes
  super + [:node_version]
end