Свойство | Тип | Описание | |
---|---|---|---|
$defaultProperties | array | The available properties we used for parsing the template. | |
$logo | string | appserver.io written in ASCI art. | |
$mergedProperties | array | The array with the merged and os specific template variables. | |
$osProperties | array | The OS specific configuration properties. |
Метод | Описание | |
---|---|---|
changeFilePermissions ( string $filename, integer $mode = 420 ) : void | Sets the passed mode for the file if NOT on Windows. | |
copyOsSpecificResource ( string $os, string $resource, boolean $override = false, integer $mode = 420 ) : void | Copies the passed OS specific resource file to the target directory. | |
getLinuxDistro ( ) : string | Returns the Linux distribution we're running on. | |
getValue ( string $key ) : mixed | null | Returns the configuration value with the passed key. | |
postInstall ( Composer\Script\Event $event ) : void | This method will be invoked by composer after a successful installation and creates the application server configuration file under etc/appserver/appserver.xml. | |
postUpdate ( Composer\Script\Event $event ) : void | This method will be invoked by composer after a successful update and creates the application server configuration file under etc/appserver/appserver.xml. | |
prepareContext ( null | string $installDir = null, null | Composer\Script\Event $event = null ) : void | Prepares the context by given event or without event for other usage | |
prepareDirectory ( string $directory, integer $mode = 509 ) : void | Prepares the passed directory if necessary. | |
prepareOsSpecificPath ( string $path ) : string | Prepares the passed path to work on the actual OS. | |
prepareProperties ( string $os, array $contextProperties ) : void | Merge the properties based on the passed OS. | |
processOsSpecificTemplate ( string $os, string $template, boolean $override = false, integer $mode = 420 ) : void | Processes the OS specific template and replace the properties with the OS specific values. | |
processTemplate ( string $template, boolean $override = false, integer $mode = 420 ) : void | Processes the template and replace the properties with the OS specific values. |
public static copyOsSpecificResource ( string $os, string $resource, boolean $override = false, integer $mode = 420 ) : void | ||
$os | string | The OS we want to copy the files for |
$resource | string | The resource file we want to copy |
$override | boolean | TRUE if the file should be overwritten if exists, else FALSE |
$mode | integer | The mode of the target file |
Результат | void |
public static getLinuxDistro ( ) : string | ||
Результат | string | The Linux distribution we're running on |
public static postInstall ( Composer\Script\Event $event ) : void | ||
$event | Composer\Script\Event | The event that invokes this method |
Результат | void |
public static postUpdate ( Composer\Script\Event $event ) : void | ||
$event | Composer\Script\Event | The event that invokes this method |
Результат | void |
public static prepareOsSpecificPath ( string $path ) : string | ||
$path | string | The path we want to perpare |
Результат | string | The prepared path |
public static processOsSpecificTemplate ( string $os, string $template, boolean $override = false, integer $mode = 420 ) : void | ||
$os | string | The OS we want to process the template for |
$template | string | The path to the template |
$override | boolean | TRUE if the file should be overwritten if exists, else FALSE |
$mode | integer | The mode of the target file |
Результат | void |
protected static array $defaultProperties | ||
Результат | array |
protected static string $logo | ||
Результат | string |
protected static array $mergedProperties | ||
Результат | array |
protected static array $osProperties | ||
Результат | array |