Module: RSpeed::Runner

Defined in:
lib/rspeed/runner.rb

Class Method Summary collapse

Class Method Details

.run(shell) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/rspeed/runner.rb', line 7

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

  RSpeed::Logger.log(self, __method__, 'Skipped! Only Pipe 1 can warm.')

  RSpeed::Observer.after_suite
end