Sha256: bfc32876ec023fa7fd7e870df2a0f8a4f7dbab13b7fcb6f2e6c861e7cee1865b

Contents?: true

Size: 573 Bytes

Versions: 6

Compression:

Stored size: 573 Bytes

Contents

module StartingBlocks
  class Runner

    def initialize options
      @contract = StartingBlocks::Contract.for options
    end

    def run_files files
      files = @contract.filter_these_files files 
      StartingBlocks.display "Files to run: #{files.inspect}"
      StartingBlocks::Publisher.publish_files_to_run files
      results = execute_these_files files
      StartingBlocks::Publisher.publish_results results
      puts results
      results
    end

    private

    def execute_these_files files
      @contract.execute_these_files files
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
starting_blocks-1.2.1 lib/starting_blocks/runner.rb
starting_blocks-1.2.0 lib/starting_blocks/runner.rb
starting_blocks-1.1.3 lib/starting_blocks/runner.rb
starting_blocks-1.1.2 lib/starting_blocks/runner.rb
starting_blocks-1.1.1 lib/starting_blocks/runner.rb
starting_blocks-1.1.0 lib/starting_blocks/runner.rb