PHPackages                             digipolisgent/robo-digipolis-deploy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. digipolisgent/robo-digipolis-deploy

ActiveRobo-tasks[DevOps &amp; Deployment](/categories/devops)

digipolisgent/robo-digipolis-deploy
===================================

Deploy tasks for Robo Task Runner

3.0.0(1y ago)6126.9k↓75.6%1[1 issues](https://github.com/district09/robo-digipolis-deploy/issues)1MITPHPCI failing

Since Feb 14Pushed 9mo ago4 watchersCompare

[ Source](https://github.com/district09/robo-digipolis-deploy)[ Packagist](https://packagist.org/packages/digipolisgent/robo-digipolis-deploy)[ RSS](/packages/digipolisgent-robo-digipolis-deploy/feed)WikiDiscussions develop Synced 3d ago

READMEChangelog (10)Dependencies (7)Versions (51)Used By (1)

Robo Digipolis Deploy
=====================

[](#robo-digipolis-deploy)

Deploy tasks for Robo Task Runner

[![Latest Stable Version](https://camo.githubusercontent.com/03bfdd87afbac8fc9a42c9164d5d1812463954dfc576e9b05610cad8aeb23b93/68747470733a2f2f706f7365722e707567782e6f72672f64696769706f6c697367656e742f726f626f2d64696769706f6c69732d6465706c6f792f762f737461626c65)](https://packagist.org/packages/digipolisgent/robo-digipolis-deploy)[![Latest Unstable Version](https://camo.githubusercontent.com/1540618a5c6969455307ee958a1f059693584e57e61a77bc6e0ec01db17ed606/68747470733a2f2f706f7365722e707567782e6f72672f64696769706f6c697367656e742f726f626f2d64696769706f6c69732d6465706c6f792f762f756e737461626c65)](https://packagist.org/packages/digipolisgent/robo-digipolis-deploy)[![Total Downloads](https://camo.githubusercontent.com/32a30c93704d2ecf5cce597e582f221e61ae63389be505d1be0bb297e1258142/68747470733a2f2f706f7365722e707567782e6f72672f64696769706f6c697367656e742f726f626f2d64696769706f6c69732d6465706c6f792f646f776e6c6f616473)](https://packagist.org/packages/digipolisgent/robo-digipolis-deploy)[![License](https://camo.githubusercontent.com/93bbbef38507473c9daa4cbf56ef37feb09b61f69d6c93152d45927e89fc7f26/68747470733a2f2f706f7365722e707567782e6f72672f64696769706f6c697367656e742f726f626f2d64696769706f6c69732d6465706c6f792f6c6963656e7365)](https://packagist.org/packages/digipolisgent/robo-digipolis-deploy)

[![Build Status](https://camo.githubusercontent.com/94af9ef94067bb1e64ae46aa10cc84f124efdc6f10fe7b6c8ac2db6d10b742c3/68747470733a2f2f7472617669732d63692e6f72672f64696769706f6c697367656e742f726f626f2d64696769706f6c69732d6465706c6f792e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/digipolisgent/robo-digipolis-deploy)[![Maintainability](https://camo.githubusercontent.com/26dff4a9be2324fa2f41e80b7832455ec0fc835545e8008efbbff5ec7f769997/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65636564333363386630343536343434383663622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/digipolisgent/robo-digipolis-deploy/maintainability)[![Test Coverage](https://camo.githubusercontent.com/0946b4bc610d7ddd64b7c4a01ffcfb30cc262a7656788287fe9c3f3f5ef55558/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65636564333363386630343536343434383663622f746573745f636f766572616765)](https://codeclimate.com/github/digipolisgent/robo-digipolis-deploy/test_coverage)[![PHP 7 ready](https://camo.githubusercontent.com/2e6059b06931c2716cca416d247249c0524e648d12d64ff9b40911a5924428f1/68747470733a2f2f7068703772656164792e74696d6573706c696e7465722e63682f64696769706f6c697367656e742f726f626f2d64696769706f6c69732d6465706c6f792f646576656c6f702f62616467652e737667)](https://travis-ci.org/digipolisgent/robo-digipolis-deploy)

Tasks in this package
---------------------

[](#tasks-in-this-package)

### PushPackage

[](#pushpackage)

```
$auth = new \DigipolisGent\Robo\Task\Deploy\Ssh\Auth\KeyFile('user', '/home/myuser/.ssh/id_dsa');
$result = $this->taskPushPackage('192.168.1.1', $auth)
    ->port(8022)
    ->timeout(15)
    ->destinationFolder('/folder/on/server')
    ->package('/path/to/local/package.tar.gz')
    ->run();
```

### SFTP

[](#sftp)

```
$auth = new \DigipolisGent\Robo\Task\Deploy\Ssh\Auth\KeyFile('user', '/home/myuser/.ssh/id_dsa');
$result = $this->taskSFTP('192.168.1.1', $auth)
    ->port(8022)
    ->timeout(15)
    // Download file from server.
    ->get('/path/to/remote/file.txt', '/path/to/local/file.txt')
    // Upload file to server.
    ->put('/path/to/remote/file.txt', '/path/to/local/file.txt')
    ->run();
```

### Ssh

[](#ssh)

```
$auth = new \DigipolisGent\Robo\Task\Deploy\Ssh\Auth\KeyFile('user', '/home/myuser/.ssh/id_dsa');
$result = $this->taskSsh('192.168.1.1', $auth)
    ->port(8022)
    ->timeout(15)
    // Set the remote directory to execute the commands in.
    ->remoteDirectory('/path/to/remote/dir')
    ->exec('composer install')
    ->run();
```

### SymlinkFolderFileContents

[](#symlinkfolderfilecontents)

```
$result = $this
    ->taskSymlinkFolderFileContents('/path/to/source', '/path/to/destination')
    ->run();
```

As this command will most likely be used to symlink config files on a server during deployment, this task should be used in a command that runs on the server. For example:

RoboFile.php on the server (let's say 192.168.1.1 in folder /path/to/remote/dir):

```
