Implement `target' recipe keyword
This commit is contained in:
11
features/task_target.feature
Normal file
11
features/task_target.feature
Normal file
@@ -0,0 +1,11 @@
|
||||
Feature: `target' task keyword
|
||||
|
||||
Scenario: returns the current target
|
||||
Given a recipe with:
|
||||
"""
|
||||
target 'some_host.example'
|
||||
|
||||
task(:echo_target) { echo target }
|
||||
"""
|
||||
When I execute the recipe
|
||||
Then the output must contain "some_host.example"
|
Reference in New Issue
Block a user