Class: CucumberPuppetRakeTask
- Inherits:
-
Object
- Object
- CucumberPuppetRakeTask
- Includes:
- Rake::DSL
- Defined in:
- lib/cucumber-puppet/rake/task.rb
Overview
Defines a Rake task for running cucumber-puppet features.
To create the basic task, call:
CucumberPuppetRakeTask.new
This defines a task ‘cucumber_puppet’ that will run features in ‘features’ and ‘modules/*/features’.
To further configure the task, you can pass a block:
CucumberPuppetRakeTask.new do |t|
t.cucumber_opts = %w{--format progress}
end
Instance Attribute Summary collapse
-
#cucumber_opts ⇒ Object
Returns the value of attribute cucumber_opts.
Instance Method Summary collapse
-
#initialize(task_name = 'cucumber_puppet', desc = 'Run cucumber-puppet features') {|_self| ... } ⇒ CucumberPuppetRakeTask
constructor
Define CucumberPuppet Rake task.
Constructor Details
#initialize(task_name = 'cucumber_puppet', desc = 'Run cucumber-puppet features') {|_self| ... } ⇒ CucumberPuppetRakeTask
Define CucumberPuppet Rake task.
29 30 31 32 33 34 35 36 37 |
# File 'lib/cucumber-puppet/rake/task.rb', line 29 def initialize(task_name = 'cucumber_puppet', desc = 'Run cucumber-puppet features') @task_name = task_name @desc = desc yield self if block_given? define_task end |
Instance Attribute Details
#cucumber_opts ⇒ Object
Returns the value of attribute cucumber_opts.
19 20 21 |
# File 'lib/cucumber-puppet/rake/task.rb', line 19 def cucumber_opts @cucumber_opts end |