Sha256: c73a5de94c74c5b585dc0311aade7d44b236415016ce07b5d5aae2c49cf0da14
Contents?: true
Size: 446 Bytes
Versions: 4
Compression:
Stored size: 446 Bytes
Contents
module Construi class Config private_class_method :new attr_reader :yaml def initialize(yaml) @yaml = yaml end def self.load(path) new(YAML.load_file(path)) end def image @yaml['image'] end def target(target) Target.new(@yaml['targets'][target]) end end class Target def initialize(yaml) @yaml = yaml end def commands @yaml end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
construi-0.5.0 | lib/construi/config.rb |
construi-0.4.0 | lib/construi/config.rb |
construi-0.2.0 | lib/construi/config.rb |
construi-0.1.0 | lib/construi/config.rb |