module Wocker::Wockerfile
Public Class Methods
from()
click to toggle source
# File lib/wocker/wockerfile.rb, line 18 def self.from parse @@from end
ports()
click to toggle source
# File lib/wocker/wockerfile.rb, line 10 def self.ports parse @@ports end
runs()
click to toggle source
# File lib/wocker/wockerfile.rb, line 14 def self.runs parse @@runs end
workdir()
click to toggle source
# File lib/wocker/wockerfile.rb, line 22 def self.workdir parse @@workdir end
Private Class Methods
parse()
click to toggle source
# File lib/wocker/wockerfile.rb, line 28 def self.parse contents = File.read "Wockerfile" parsed = YAML.load contents @@runs = parsed["runs"] @@from = parsed["from"] @@workdir = parsed["workdir"] @@ports = if parsed["ports"] ports_split = [] parsed["ports"].each do |port| ports_split << port.split(":") end ports_split end end