Skip to content

Add generic push and pull file locations support #10

Description

@c10b10

Add a way of defining custom local and remote paths pairs that work with the push / pull subcommands.

Every push & pull would check for the existence of a local / remote paths pair before execution and would trigger an error if they don't exist.

This has the added benefit of flexibility since it would allow users to define an arbitrary number of locations to push to / pull from. On the other hand, it would have the disadvantage that users should add uploads / themes / plugins local paths constants in their configuration.

Example

<?php
define( 'DEV_%%LOCATION%%_LOCAL_PATH', '/local/path/to/location' );
define( 'DEV_%%LOCATION%%_REMOTE_PATH', '/remote/path/to/location' );
$ wp deploy push dev --what=%%location%% 

Should rsync the /local/path/to/location/ to /remote/path/to/location.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions