Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 488 Bytes
# Copyright 2008 Tim Dysinger
# http://www.opensource.org/licenses/mit-license.php
%w(rubygems ostruct yaml).each { |l| require(l) }
class OpenStruct
public(:binding)
def binding ; super end
def merge(other) ; OpenStruct.new(@table.merge(other.to_hash)) end
def merge!(other) ; @table.merge!(other.to_hash) ; self end
def to_hash ; @table.dup end
end
@env = OpenStruct.new
task(:env) do
@env.merge!(YAML.load(IO.read("env.yml")))
end
Dir['**/*.rake'].each { |f| load(f) }