lbausch/deployer-upload

Enhanced upload functions for Deployer

v2.0.0 2016-11-26 21:36 UTC

This package is not auto-updated.

Last update: 2020-05-13 06:19:55 UTC


README

Installation

  1. composer require lbausch/deployer-upload --dev

  2. require 'vendor/lbausch/deployer-upload/src/upload.php'; in your recipe

Usage

Upload directory

/**
 * Upload directory to current server.
 *
 * @param string $local
 * @param string $remote
 * @param array  $options
 *
 * @throws \RuntimeException
 */
function upload_dir($local, $remote, $options = [])

Default options:

$options = [
    'ignore_unreadable_dirs' => true,
    'ignore_vcs' => true,
    'ignore_dot_files' => false,
];