class Appraisal::AppraisalFile
Loads and parses Appraisals file
def self.each(&block)
def self.each(&block) new.each(&block) end
def appraise(name, &block)
def appraise(name, &block) appraisal = Appraisal.new(name, gemfile) appraisal.instance_eval(&block) @appraisals << appraisal end
def customize_gemfiles(&_block)
def customize_gemfiles(&_block) Customize.new(yield) end
def each(&block)
def each(&block) appraisals.each(&block) end
def initialize
def initialize @appraisals = [] @gemfile = Gemfile.new @gemfile.load(ENV['BUNDLE_GEMFILE'] || 'Gemfile') if File.exist? path run IO.read(path) else raise AppraisalsNotFound end end
def path
def path 'Appraisals' end
def run(definitions)
def run(definitions) instance_eval(definitions, __FILE__, __LINE__) end