Sunnysideup\ModuleChecks\Commands\ShellCommandsAbstract
Synopsis
class ShellCommandsAbstract
extends BaseCommand
{
- // members
- protected string $repo = '';
- protected array $commands = ;
- protected array $outcomes = ;
- protected string $rootDirForModule = '';
- private static boolean $enabled = false;
- // Inherited members from BaseCommand
- protected $repo;
- protected string $errorString;
- // methods
- public void __construct()
- public void setRootDirForModule()
- public void setCommand()
- public void addCommands()
- public void run()
- public abstract void getDescription()
- public static void CheckCommandExists()
- protected void runCommand()
- // Inherited methods from BaseCommand
- public void __construct()
- public abstract void run()
- public void calculateType()
- public void setRepo()
- public void getError()
- protected void getName()
- protected void getNameWithoutSilverstripe()
- protected void logError()
- protected void hasError()
Hierarchy
Members
private
- $enabled
protected
- $commands
- $errorString
- $outcomes
- $repo
—
string
root dir for module e.g. /var/www/modules/mymodule no final slash - $repo
- $rootDirForModule — string
Methods
protected
- runCommand() — runs a command from the root dir or the module
public
- __construct()
- CheckCommandExists()
- addCommands()
- getDescription()
- run()
- setCommand()
- setRootDirForModule()