Class: Hypercuke::CLI::Builder
- Inherits:
-
Object
- Object
- Hypercuke::CLI::Builder
- 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
- #cucumber_command_line(prepend_bundler = false) ⇒ Object
-
#initialize(options) ⇒ Builder
constructor
A new instance of Builder.
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() = @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 |