Class: Hypercuke::CLI::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/hypercuke/cli/builder.rb

Overview

I take information extracted the Parser and use it to build a ‘cucumber’ command line

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Builder

Returns a new instance of Builder.



7
8
9
10
11
# File 'lib/hypercuke/cli/builder.rb', line 7

def initialize(options)
  @options   = options
  @cuke_args = []
  build_cuke_args
end

Instance Method Details

#cucumber_command_line(prepend_bundler = false) ⇒ Object



13
14
15
16
17
# File 'lib/hypercuke/cli/builder.rb', line 13

def cucumber_command_line(prepend_bundler = false)
  cmd = prepend_bundler ? 'bundle exec ' : ''
  cmd << cuke_args.join(' ')
  cmd
end