junty/junty-todir

Send globs to another paths.

v0.1.2 2016-03-08 22:24 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:03:36 UTC


README

Send globs to another paths.

Installation

$ composer require --dev junty/junty-todir

Usage

On your juntyfile.php:

require 'vendor/autoload.php';

use Junty\Runner;
use Junty\ToDir\ToDirPlugin;

$junty = new Runner();

$junty->task('catch_txt', function () {
    $this->src('./*.txt')
        ->forStreams(new ToDirPlugin('txt_files')); // Send all txt files to txt_files
});

Nativaly!

This plugin comes nativaly with Junty, so you don't need to install.

// ...
->forStreams($this->toDir('directory_name'))