Class: Flatware::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/flatware/cucumber/cli.rb

Overview

cucumber thor command

Instance Method Summary collapse

Instance Method Details

#cucumber(*args) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/flatware/cucumber/cli.rb', line 18

def cucumber(*args)
  config = Cucumber.configure args

  ensure_jobs(config)

  Flatware.verbose = options[:log]
  sink = options['sink-endpoint']
  Worker.spawn(count: workers, runner: Cucumber, sink: sink)
  start_sink(
    jobs: config.jobs,
    workers: workers,
    formatter: Flatware::Cucumber::Formatters::Console.new($stdout, $stderr)
  )
end