class Quay::Config

Attributes

services[R]
tasks[R]

Public Class Methods

eval_from_path(path) click to toggle source
# File lib/quay/config.rb, line 3
def self.eval_from_path(path)
  path ||= "Quayfile"
  evaluate(File.read(path))
end
evaluate(contents) click to toggle source
# File lib/quay/config.rb, line 8
def self.evaluate(contents)
  config = self.new
  config.instance_eval(contents)
  config
end
new() click to toggle source
# File lib/quay/config.rb, line 16
def initialize
  @services = {}
  @tasks = {}
end

Public Instance Methods

service(name, options={}) click to toggle source
# File lib/quay/config.rb, line 21
def service(name, options={})
  @services[name] = options
end
task(name, options={}) click to toggle source
# File lib/quay/config.rb, line 25
def task(name, options={})
  @tasks[name] = options
end