Implement `target' condition keyword

This commit is contained in:
Thibault Jouan
2014-09-25 01:34:30 +00:00
parent a7b2c4abea
commit 42e29cc1fe
3 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
Feature: `target' condition keyword
Scenario: returns the current target
Given a recipe with:
"""
target 'some_host.example'
task :test_target do
condition { target == 'some_host.example' }
echo 'OK'
end
"""
When I execute the recipe
Then the output must contain "OK"