Class: Egg::Dockerfile::Ruby

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

Overview

Ruby Dockerfile Template Required Attributes: @ruby_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

#initializeRuby

Returns a new instance of Ruby.



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

def initialize
  @template = dockerfile
end

Instance Attribute Details

#ruby_versionObject

Returns the value of attribute ruby_version.



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

def ruby_version
  @ruby_version
end

Instance Method Details

#required_attributesObject



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

def required_attributes
  super + [:ruby_version]
end