Exception: Baha::DockerfileParseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/baha/dockerfile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, line, text) ⇒ DockerfileParseError

Returns a new instance of DockerfileParseError.



12
13
14
15
16
17
# File 'lib/baha/dockerfile.rb', line 12

def initialize(file,line, text)
  super("Unable to parse Dockerfile #{file}:#{line}\n#{text}")
  @file = file
  @line = line
  @text = text
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



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

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line.



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

def line
  @line
end

#textObject (readonly)

Returns the value of attribute text.



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

def text
  @text
end