\SilverStripeDeployTask
A phing task to perform a deployment of a specified tarball to a remote server
- Author: marcus@symbiote.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class SilverStripeDeployTask
extends SilverStripeBuildTask
{
- // members
- private $localpath;
- private $apppath;
- private string $package = '';
- private string $apachegroup = 'apache';
- private string $remotepath = '';
- private boolean $incremental = false;
- private string $sapphirepath = 'framework';
- private string $host = "";
- private integer $port = 22;
- private string $username = "";
- private string $password = "";
- private string $pubkeyfile = '';
- private string $privkeyfile = '';
- private string $privkeyfilepassphrase = '';
- private boolean $ignoreerrors = false;
- private boolean $inplace = false;
- // methods
- public void main()
- protected string configureReleaseDir()
- protected void beforeDeploy()
- protected void extractPackage()
- protected void doDeploy()
- public void preLinkSwitch()
- public void postDeploy()
- protected void executeOptionalPhpScript()
- protected string execute()
- protected void copyFile()
- protected void connect()
- public void setSapphirepath()
- public void setApachegroup()
- public void getApachegroup()
- public void setLocalpath()
- public void getLocalpath()
- public void setApppath()
- public void getApppath()
- public void setRemotepath()
- public void getRemotepath()
- public void setPackage()
- public void getPackage()
- public void setIncremental()
- public void getIncremental()
- public void setInplace()
- public void getInplace()
- public void setHost()
- public void getHost()
- public void setPort()
- public void getPort()
- public void setUsername()
- public void getUsername()
- public void setPassword()
- public void getPassword()
- public void setPubkeyfile()
- public void getPubkeyfile()
- public void setPrivkeyfile()
- public void getPrivkeyfile()
- public void setPrivkeyfilepassphrase()
- public void getPrivkeyfilepassphrase()
- public void setCommand()
- public void getCommand()
- public void setIgnoreErrors()
- public void getIgnoreErrors()
- // Inherited methods from SilverStripeBuildTask
- protected void devBuild()
- protected string getInput()
- protected void exec()
- protected string formatWithColor()
Hierarchy
Extends
Members
private
- $apachegroup
- $apppath
- $host
- $ignoreerrors
- $incremental
- $inplace
- $localpath
- $package
- $password
- $port
- $privkeyfile
- $privkeyfilepassphrase
- $pubkeyfile
- $remotepath
- $sapphirepath
- $username
Methods
protected
- beforeDeploy() — Copy the existing deployment and/or relevant configuration files to the new location
- configureReleaseDir() — Configure the release directory in the remote system
- connect() — Connects SSH stuff up
- copyFile() — Copies a file to the remote system
- doDeploy() — Update the new deployment with configs etc
- execute() — Executes a command over SSH
- executeOptionalPhpScript()
- extractPackage() — Extract the remote package
public
- getApachegroup()
- getApppath()
- getCommand()
- getHost()
- getIgnoreErrors()
- getIncremental()
- getInplace()
- getLocalpath()
- getPackage()
- getPassword()
- getPort()
- getPrivkeyfile() — Returns the private keyfile
- getPrivkeyfilepassphrase() — Returns the private keyfile passphrase
- getPubkeyfile() — Returns the pubkeyfile
- getRemotepath()
- getUsername()
- main()
- postDeploy() — If the project has a post_deploy.php script, execute it.
- preLinkSwitch() — If the project has a pre_deploy.php script, execute it.
- setApachegroup()
- setApppath()
- setCommand()
- setHost()
- setIgnoreErrors()
- setIncremental()
- setInplace()
- setLocalpath()
- setPackage()
- setPassword()
- setPort()
- setPrivkeyfile() — Sets the private key file of the user to scp
- setPrivkeyfilepassphrase() — Sets the private key file passphrase of the user to scp
- setPubkeyfile() — Sets the public key file of the user to scp
- setRemotepath()
- setSapphirepath()
- setUsername()
Inherited from SilverStripeBuildTask
protected
- devBuild()
- exec()
- formatWithColor() — Formats a buffer with a specified ANSI color sequence if colors are enabled. (Taken from PHPUnit)
- getInput() — Get some input from the user