Class: Decko::Commands::CucumberCommand

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

Defined Under Namespace

Classes: Parser

Instance Method Summary collapse

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 'decko/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

#commandObject



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

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