Skip to content

Commit 3999c35

Browse files
Switched local and remote path for pull task since it make more sense to actually have the remote path be the source
Signed-off-by: Bastian Schwarz <bastian@codename-php.de>
1 parent 12d0969 commit 3999c35

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/task/media/Pull.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function setTransferables(iTransferable ...$transferables) : Pull {
6262
*/
6363
public function __invoke() : void {
6464
foreach($this->getTransferables() as $transferable) {
65-
$this->deployerFunctions->download($transferable->getLocalPath(), $transferable->getRemotePath(), $transferable->getConfig());
65+
$this->deployerFunctions->download($transferable->getRemotePath(), $transferable->getLocalPath(), $transferable->getConfig());
6666
}
6767
}
6868
}

test/task/media/PullTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public function test__invoke() : void {
5454
->expects(self::exactly(3))
5555
->method('download')
5656
->withConsecutive(
57-
['local1', 'remote1', ['config1']],
58-
['local2', 'remote2', ['config2']],
59-
['local3', 'remote3', ['config3']],
57+
['remote1', 'local1', ['config1']],
58+
['remote2', 'local2', ['config2']],
59+
['remote3', 'local3', ['config3']],
6060
);
6161

6262
$this->sut->__invoke();

0 commit comments

Comments
 (0)