Sha256: e91ee861b33348fd358dfe0b9d949814bf7627471e6eac69bcf6f972ac191fe1
Contents?: true
Size: 463 Bytes
Versions: 16
Compression:
Stored size: 463 Bytes
Contents
module Project class TestsRunner def self.call(project) runner = new(project) yield runner if block_given? runner.call end attr_reader :project attr_accessor :command def initialize(project) @project = project self.command = project.test_runner_command end def call match = command.match(/^((?:\w+=[^ ]+ )*)(.+)$/) project.run_command_within(match[2], :env => match[1]) end end end
Version data entries
16 entries across 16 versions & 1 rubygems