Class: 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.
Methods inherited from Command
#exit_with_child_status, #run, #split_args
Constructor Details
#initialize(args) ⇒ CucumberCommand
Returns a new instance of CucumberCommand.
6 7 8 9 10 11 12 |
# File 'lib/decko/commands/cucumber_command.rb', line 6 def initialize args require "decko" require "./config/environment" @decko_args, @cucumber_args = split_args args @opts = {} Parser.new(@opts).parse!(@decko_args) end |
Instance Method Details
#command ⇒ Object
14 15 16 17 |
# File 'lib/decko/commands/cucumber_command.rb', line 14 def command @cmd ||= "#{env_args} #{@opts[:executer] || "bundle exec"} cucumber #{require_args} #{feature_args}" end |