Banago\PHPloy\PHPloy::setRevision PHP Method

setRevision() public method

Sets revision on the server.
public setRevision ( $localRevision = null )
    public function setRevision($localRevision = null)
    {
        if (empty($localRevision)) {
            $localRevision = $this->currentRevision();
        }
        if ($this->sync) {
            if ($this->sync != 'LAST') {
                $localRevision = $this->sync;
            }
            $this->cli->info("Setting remote revision to: {$localRevision}");
        }
        $this->connection->put($this->dotRevision, $localRevision);
    }