Class: Decko::Commands::CucumberCommand

Inherits:
Cardio::Command::CommandBase
  • Object
show all
Defined in:
lib/decko/commands/cucumber_command.rb,
lib/decko/commands/cucumber_command/parser.rb

Overview

handling of ‘decko cucumber` command

Defined Under Namespace

Classes: Parser

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CucumberCommand

Returns a new instance of CucumberCommand.



12
13
14
15
16
17
# File 'lib/decko/commands/cucumber_command.rb', line 12

def initialize args
  super()
  @decko_args, @cucumber_args = split_args args
  @opts = {}
  Parser.new(@opts).parse!(@decko_args)
end

Instance Method Details

#commandObject



19
20
21
22
23
# File 'lib/decko/commands/cucumber_command.rb', line 19

def command
  @command ||=
    "#{env_args} #{@opts[:executer] || 'bundle exec'} " \
    "cucumber #{require_args} #{feature_args} #{@cucumber_args.shelljoin}"
end