diff --git a/public_html/deployment/classes/build.interface.php b/public_html/deployment/classes/build.interface.php index d91037d109a0c1f3a74e19920a8d6fec01e25f84..9c9abf36cf15b5c69b65699c9d8829eaea719b4f 100644 --- a/public_html/deployment/classes/build.interface.php +++ b/public_html/deployment/classes/build.interface.php @@ -5,37 +5,19 @@ * @author hahn */ interface iBuildplugin { - - // ---------------------------------------------------------------------- - // VERIFY - // ---------------------------------------------------------------------- /** - * check requirements if the plugin could work - public function checkRequirements(); + * get an array of commands to check requirements + * if the plugin is able to work + * @return array */ + public function checkRequirements(); /** * get an array with shell commands to execute * @return array */ public function getBuildCommands(); - - /** - * get name of plugin as string ... language specific - public function getName(); - */ - - /** - * get description of plugin as string ... language specific - public function getDescription(); - */ - - /** - * get array of data in info.js - public function getPluginInfos(); - */ - } diff --git a/public_html/deployment/classes/build_base.class.php b/public_html/deployment/classes/build_base.class.php index 29f22c1547c75028771be0b1299f8565af079f8a..5f46ec4983c6fe4f844ef428f55ac0e2392e9d1a 100644 --- a/public_html/deployment/classes/build_base.class.php +++ b/public_html/deployment/classes/build_base.class.php @@ -111,15 +111,23 @@ class build_base implements iBuildplugin{ return $this->_sOutfile=$sOutFilename ? $sOutFilename.$this->getExtension() : $this->_sOutfile; } - // --------------------------------------------------------------- // GETTER // --------------------------------------------------------------- + + /** + * check requirements if the plugin could work + * @return array + */ + public function checkRequirements() { + return [ + 'echo "ERROR: The method checkRequirements() was not implemented in the build plugin ['.$this->getId().']"', + 'exit 1' + ]; + } /** * get an array with shell commands to execute - * @param string $sBuildDir full path of the build directory - * @param string $sOutFilename filename for output * @return array */ public function getBuildCommands(){ diff --git a/public_html/deployment/plugins/build/tgz/build_tgz.php b/public_html/deployment/plugins/build/tgz/build_tgz.php index 6242ea762124b61570103cd8345a13a94a92ec36..743a570b348326cc4ffe2a5766e70769c7d1e686 100644 --- a/public_html/deployment/plugins/build/tgz/build_tgz.php +++ b/public_html/deployment/plugins/build/tgz/build_tgz.php @@ -10,6 +10,7 @@ class build_tgz extends build_base { /** * check requirements if the plugin could work + * @return array */ public function checkRequirements() { return [ @@ -19,8 +20,6 @@ class build_tgz extends build_base { /** * get an array with shell commands to execute - * @param string $sBuildDir full path of the build directory - * @param string $sOutFilename filename for output * @return array */ public function getBuildCommands(){