Class: Decko::Commands::CucumberCommand
- Inherits:
-
Cardio::Command::CommandBase
- Object
- Cardio::Command::CommandBase
- Decko::Commands::CucumberCommand
- Defined in:
- lib/decko/commands/cucumber_command.rb,
lib/decko/commands/cucumber_command/parser.rb
Defined Under Namespace
Classes: Parser
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(args) ⇒ CucumberCommand
constructor
A new instance of CucumberCommand.
Constructor Details
#initialize(args) ⇒ CucumberCommand
Returns a new instance of CucumberCommand.
11 12 13 14 15 |
# File 'lib/decko/commands/cucumber_command.rb', line 11 def initialize args @decko_args, @cucumber_args = split_args args @opts = {} Parser.new(@opts).parse!(@decko_args) end |
Instance Method Details
#command ⇒ Object
17 18 19 20 21 |
# File 'lib/decko/commands/cucumber_command.rb', line 17 def command @cmd ||= "#{env_args} #{@opts[:executer] || 'bundle exec'} " \ "cucumber #{require_args} #{feature_args} #{@cucumber_args.shelljoin}" end |