PHP Class Deployer\Server\Builder

Inheritance: implements Deployer\Builder\BuilderInterface
Datei anzeigen Open project: elfet/deployer

Protected Properties

Property Type Description
$env Environment

Public Methods

Method Description
__construct ( Configuration $config, Environment $env ) Construct
configFile ( $file = '~/.ssh/config' )
forwardAgent ( )
host ( string $host ) : Deployer\Builder\BuilderInterface Define server host
identityFile ( $publicKeyFile = '~/.ssh/id_rsa.pub', $privateKeyFile = '~/.ssh/id_rsa', $passPhrase = '' )
identityFileAndPassword ( string $publicKeyFile = '~/.ssh/id_rsa.pub', string $privateKeyFile = '~/.ssh/id_rsa', string $passPhrase = '', string $password = null ) : Deployer\Builder\BuilderInterface Authenticate with public key + password (2-factor)
password ( $password = null )
pemFile ( $pemFile )
port ( integer $port ) : Deployer\Builder\BuilderInterface Define server port
set ( $name, $value )
ssh2Pty ( $ssh2Pty ) : Deployer\Builder\BuilderInterface Use pty in ssh2 connection
stage ( $stages )
user ( $name )

Private Methods

Method Description
checkPassword ( mixed $password ) : mixed Check password valid

Method Details

__construct() public method

Construct
public __construct ( Configuration $config, Environment $env )
$config Configuration
$env Environment

configFile() public method

public configFile ( $file = '~/.ssh/config' )

forwardAgent() public method

public forwardAgent ( )

host() public method

Define server host
public host ( string $host ) : Deployer\Builder\BuilderInterface
$host string
return Deployer\Builder\BuilderInterface

identityFile() public method

public identityFile ( $publicKeyFile = '~/.ssh/id_rsa.pub', $privateKeyFile = '~/.ssh/id_rsa', $passPhrase = '' )

identityFileAndPassword() public method

Authenticate with public key + password (2-factor)
public identityFileAndPassword ( string $publicKeyFile = '~/.ssh/id_rsa.pub', string $privateKeyFile = '~/.ssh/id_rsa', string $passPhrase = '', string $password = null ) : Deployer\Builder\BuilderInterface
$publicKeyFile string
$privateKeyFile string
$passPhrase string
$password string
return Deployer\Builder\BuilderInterface

password() public method

public password ( $password = null )

pemFile() public method

public pemFile ( $pemFile )

port() public method

Define server port
public port ( integer $port ) : Deployer\Builder\BuilderInterface
$port integer
return Deployer\Builder\BuilderInterface

set() public method

public set ( $name, $value )

ssh2Pty() public method

Use pty in ssh2 connection
public ssh2Pty ( $ssh2Pty ) : Deployer\Builder\BuilderInterface
$ssh2Pty
return Deployer\Builder\BuilderInterface

stage() public method

public stage ( $stages )

user() public method

public user ( $name )

Property Details

$env protected_oe property

protected Environment,Deployer\Server $env
return Environment