Method: Ufo::Docker::Builder#from_image_names

Defined in:
lib/ufo/docker/builder.rb

#from_image_names(path) ⇒ Object



71
72
73
74
75
76
77
78
# File 'lib/ufo/docker/builder.rb', line 71

def from_image_names(path)
  lines = IO.readlines(path)
  froms = lines.select { |l| l =~ /^FROM/ }
  froms.map do |l|
    md = l.match(/^FROM (.*)/)
    md[1]
  end.compact
end