Sha256: a9b14f370a928ebf5ae2a6ccc3a7e4f493854a6bbf413aa4372dd91f6acdd91a
Contents?: true
Size: 656 Bytes
Versions: 11
Compression:
Stored size: 656 Bytes
Contents
class CommandLineTask def initialize(runner, parser) @runner = runner @parser = parser end def run(files) all_files = files[:all] modified_files = files[:filtered] return nil if (!@runner.is_configured? all_files) return nil if (!@runner.should_run? modified_files) detail = @runner.execute state, summary, first = @parser.parse_result(detail) return { :state => state, :title => @runner.name, :summary => summary, :first => first, :detail => detail } end def is_configured?(files) return @runner.is_configured? files[:all] end end
Version data entries
11 entries across 11 versions & 1 rubygems