Implement `target' recipe keyword

This commit is contained in:
Thibault Jouan committed 2014-09-25 01:24:25 +00:00
1 parent 8fd387b41f
commit a7b2c4abea
3 files changed
+22

No files matched your search

+11
View 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"