PHP Class Scalr_Net_Scalarizr_UpdateClient

Mostrar archivo Open project: scalr/scalr Class Usage Examples

Public Methods

Method Description
__construct ( DBServer $dbServer, $port = 8008, $timeout = 5 )
configure ( $repo, $schedule )
executeCmd ( $cmd )
getStatus ( $cached = false )
putFile ( $path, $contents )
restartScalarizr ( $force = false )
setTimeout ( integer $timeout )
updateScalarizr ( $force = false )

Private Methods

Method Description
request ( $method, $params = null )

Method Details

__construct() public method

public __construct ( DBServer $dbServer, $port = 8008, $timeout = 5 )
$dbServer DBServer

configure() public method

public configure ( $repo, $schedule )

executeCmd() public method

public executeCmd ( $cmd )

getStatus() public method

public getStatus ( $cached = false )

putFile() public method

public putFile ( $path, $contents )

restartScalarizr() public method

public restartScalarizr ( $force = false )

setTimeout() public method

public setTimeout ( integer $timeout )
$timeout integer Timeout in seconds

updateScalarizr() public method

public updateScalarizr ( $force = false )