Class: Egg::Dockerfile::NodeJS

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

Overview

NodeJS Dockerfile Template Required Attributes: @node_version: Version of Ruby to use for the ruby image.

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.



13
14
15
# File 'lib/egg/dockerfile/node_js.rb', line 13

def initialize
  @template = dockerfile
end

Instance Attribute Details

#node_versionObject

Returns the value of attribute node_version.



11
12
13
# File 'lib/egg/dockerfile/node_js.rb', line 11

def node_version
  @node_version
end

Instance Method Details

#required_attributesObject



7
8
9
# File 'lib/egg/dockerfile/node_js.rb', line 7

def required_attributes
  super + [:node_version]
end