Class: Dockerfile::Ruby

Inherits:
Base
  • Object
show all
Defined in:
lib/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.



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

def initialize
  @template = dockerfile
end

Instance Attribute Details

#ruby_versionObject

Returns the value of attribute ruby_version.



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

def ruby_version
  @ruby_version
end

Instance Method Details

#required_attributesObject



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

def required_attributes
  super + [:ruby_version]
end