Sha256: afc0d8a894b341bada6aa885f562f4246779eb6f22ab41d6c5402a24c39b5bc6

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module RSpeed
  module Runner
    module_function

    def run(shell, splitter: ::RSpeed::Splitter.new)
      if RSpeed::Redis.result? || splitter.first_pipe?
        return shell.call(['bundle exec rspec', splitter.pipe_files].compact.join(' '))
      end

      RSpeed::Logger.log("Pipe #{RSpeed::Env.pipe} skipped. Only Pipe 1 can warm.")

      RSpeed::Observer.after_suite
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspeed-0.5.2 lib/rspeed/runner.rb