Sha256: 3c0f7c9d615ada3293aa268ee7272388604846fa5b065c01b4f6968577ec6592
Contents?: true
Size: 826 Bytes
Versions: 3
Compression:
Stored size: 826 Bytes
Contents
module Outliers class Run attr_accessor :credentials, :results def initialize @results = [] end def process_evaluations_in_config_folder evaluations_path = File.join Outliers.config_path files = Dir.glob(File.join(evaluations_path, '**', '*')) files.each do |file| next if File.directory? file next if File.extname(file) != '.rb' logger.info "Processing '#{file}'." self.instance_eval File.read(file) end end def evaluate(name='unspecified', &block) Evaluation.new(:name => name, :run => self).instance_eval &block end def passed @results.select {|r| r.passed?} end def failed @results.reject {|r| r.passed?} end private def logger @logger ||= Outliers.logger end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
outliers-0.2.0 | lib/outliers/run.rb |
outliers-0.1.1 | lib/outliers/run.rb |
outliers-0.1.0 | lib/outliers/run.rb |