From 26c3a4c1ae5bd78e9637efe2b1830ee8b57734fa Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 6 Oct 2015 17:37:29 +1300 Subject: [PATCH] BUG fix error in pushing transifex source files --- src/Model/Module.php | 7 ++++++- src/Steps/Release/UpdateTranslations.php | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Model/Module.php b/src/Model/Module.php index f5f2037..9b030d9 100644 --- a/src/Model/Module.php +++ b/src/Model/Module.php @@ -107,7 +107,12 @@ public function isValid() { public function isTranslatable() { return $this->directory && realpath($this->directory . '/.tx/config'); } - + + /** + * Get name of this module + * + * @return string + */ public function getName() { return $this->name; } diff --git a/src/Steps/Release/UpdateTranslations.php b/src/Steps/Release/UpdateTranslations.php index b0c5325..a3ee035 100644 --- a/src/Steps/Release/UpdateTranslations.php +++ b/src/Steps/Release/UpdateTranslations.php @@ -221,7 +221,7 @@ protected function generateJavascriptInDirectory(OutputInterface $output, $base, * Push source updates to transifex * * @param OutputInterface $output - * @param type $modules + * @param Module[] $modules */ public function pushSource(OutputInterface $output, $modules) { $this->log($output, "Pushing updated sources to transifex"); @@ -232,7 +232,8 @@ public function pushSource(OutputInterface $output, $modules) { '(cd %s && tx push -s)', $module->getDirectory() ); - $this->runCommand($output, $pushCommand, "Error pushing module {$module} to origin"); + $moduleName = $module->getName(); + $this->runCommand($output, $pushCommand, "Error pushing module {$moduleName} to origin"); } }