Skip to content

Commit 960d5c4

Browse files
author
Tom Needham
committed
Return exit code properly
1 parent 15e92ea commit 960d5c4

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

src/LaravelDeployer/Commands/BaseCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function dep($command)
5555

5656
$parameters = $this->getParametersAsString($this->parameters);
5757
$depBinary = 'vendor' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'dep';
58-
$this->process("$depBinary --file=$deployFile $command $parameters");
58+
return $this->process("$depBinary --file=$deployFile $command $parameters");
5959
}
6060

6161
public function getDeployFile()
@@ -100,7 +100,7 @@ public function getCustomDeployFile()
100100

101101
public function process($command)
102102
{
103-
$process = (new Process($command))
103+
return (new Process($command))
104104
->setTty($this->isTtySupported())
105105
->setWorkingDirectory(base_path())
106106
->setTimeout(null)

src/LaravelDeployer/Commands/Deploy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class Deploy extends BaseCommand
99

1010
public function handle()
1111
{
12-
$this->dep('deploy');
12+
return $this->dep('deploy');
1313
}
1414
}

src/LaravelDeployer/Commands/DeployConfigs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class DeployConfigs extends BaseCommand
99

1010
public function handle()
1111
{
12-
$this->dep('config:dump');
12+
return $this->dep('config:dump');
1313
}
1414
}

src/LaravelDeployer/Commands/DeployCurrent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class DeployCurrent extends BaseCommand
99

1010
public function handle()
1111
{
12-
$this->dep('config:current');
12+
return $this->dep('config:current');
1313
}
1414
}

src/LaravelDeployer/Commands/DeployDump.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class DeployDump extends BaseCommand
99

1010
public function handle()
1111
{
12-
$this->dep('debug:task');
12+
return $this->dep('debug:task');
1313
}
1414
}

src/LaravelDeployer/Commands/DeployHosts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class DeployHosts extends BaseCommand
99

1010
public function handle()
1111
{
12-
$this->dep('config:hosts');
12+
return $this->dep('config:hosts');
1313
}
1414
}

src/LaravelDeployer/Commands/DeployList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ class DeployList extends BaseCommand
1414

1515
public function handle()
1616
{
17-
$this->dep('list');
17+
return $this->dep('list');
1818
}
1919
}

src/LaravelDeployer/Commands/DeployRollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class DeployRollback extends BaseCommand
99

1010
public function handle()
1111
{
12-
$this->dep('rollback');
12+
return $this->dep('rollback');
1313
}
1414
}

src/LaravelDeployer/Commands/DeployRun.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ class DeployRun extends BaseCommand
1010
public function handle()
1111
{
1212
// Task will be executed as a direct command of `dep`.
13-
$this->dep('');
13+
return $this->dep('');
1414
}
1515
}

src/LaravelDeployer/Commands/Logs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class Logs extends BaseCommand
99

1010
public function handle()
1111
{
12-
$this->dep('logs');
12+
return $this->dep('logs');
1313
}
1414
}

0 commit comments

Comments
 (0)