Implement target recipe keyword feature
This commit is contained in:
1 parent
a6e27edfd2
commit
a3bba6d4da
4 files changed
+39
-1
No files matched your search
@@ -87,6 +87,15 @@ module Producer::Core
|
||||
end
|
||||
end
|
||||
|
||||
describe '#target' do
|
||||
let(:code) { proc { target 'some_host.example' } }
|
||||
|
||||
it 'registers the target host in the env' do
|
||||
expect(env).to receive(:target=).with('some_host.example')
|
||||
dsl.evaluate(env)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#tasks' do
|
||||
let(:code) { proc { task(:some_task) } }
|
||||
|
||||
|
||||
Reference in new issue
Block a user