Implement target recipe keyword feature

This commit is contained in:
Thibault Jouan
2013-08-03 23:41:22 +00:00
parent a6e27edfd2
commit a3bba6d4da
4 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
Feature: target recipe keyword
Scenario: registers the target host on which tasks should be evaluated
Given a recipe with:
"""
target 'some_host.example'
puts env.target
"""
When I execute the recipe
Then the exit status must be 0
And the output must contain exactly "some_host.example\n"