Skip to content

Commit 93b5538

Browse files
author
Bastian Schwarz
committed
Extended the all interface and implemented the all implementation
1 parent af6c138 commit 93b5538

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/functions/All.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
use function Deployer\runLocally;
4343
use function Deployer\set;
4444
use function Deployer\upload;
45+
use function Deployer\within;
4546

4647
/**
4748
* Implements all method interfaces so we a "all drop-in" class to easily access the methods
@@ -169,4 +170,8 @@ public function registerTask(iTaskWithName $task) : void {
169170
public function upload(string $source, string $destination, array $config = []) : void {
170171
upload($source, $destination, $config);
171172
}
173+
174+
public function within(string $path, callable $callback) : mixed {
175+
return within($path, $callback);
176+
}
172177
}

src/functions/iAll.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
*
2323
* The idea is to provide a stable, typed API and also a level of abstraction to the global deployer functions so testing is easier.
2424
*/
25-
interface iAll extends iAdd, iAfter, iBefore, iCurrentHost, iDownload, iGet, iHost, iInput, iLocalhost, iOn, iParse, iRun, iSet, iTask, iUpload {
25+
interface iAll extends iAdd, iAfter, iBefore, iCurrentHost, iDownload, iGet, iHost, iInput, iLocalhost, iOn, iParse, iRun, iSet, iTask, iUpload, iWithin {
2626

2727
}

0 commit comments

Comments
 (0)