Skip to content
Snippets Groups Projects
Commit a8e6499c authored by hahn's avatar hahn
Browse files

update docs in build plugin files

parent 918336d9
No related branches found
No related tags found
1 merge request!195534 add docker
......@@ -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();
*/
}
......@@ -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(){
......
......@@ -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(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment