Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Allow for silently run runForCurrentRelease commands #765

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Rocketeer/Traits/BashModules/Core.php
Expand Up @@ -181,10 +181,11 @@ public function runSilently($commands, $array = false)
*
* @param string|null $folder
* @param string|array $tasks
* @param boolean $silent
*
* @return string|null
*/
public function runInFolder($folder = null, $tasks = [])
public function runInFolder($folder = null, $tasks = [], $silent = false)
{
// Convert to array
if (!is_array($tasks)) {
Expand All @@ -194,7 +195,7 @@ public function runInFolder($folder = null, $tasks = [])
// Prepend folder
array_unshift($tasks, 'cd '.$this->paths->getFolder($folder));

return $this->run($tasks);
return $this->run($tasks, $silent);
}

/**
Expand Down
5 changes: 3 additions & 2 deletions src/Rocketeer/Traits/BashModules/Flow.php
Expand Up @@ -52,12 +52,13 @@ public function usesStages()
* Run actions in the current release's folder.
*
* @param string|array $tasks One or more tasks
* @param boolean $silent
*
* @return string
*/
public function runForCurrentRelease($tasks)
public function runForCurrentRelease($tasks, $silent = false)
{
return $this->runInFolder($this->releasesManager->getCurrentReleasePath(), $tasks);
return $this->runInFolder($this->releasesManager->getCurrentReleasePath(), $tasks, $silent);
}

////////////////////////////////////////////////////////////////////
Expand Down