env_push
Copy a file or directory from the host to a specified environment, creating parent directories as needed. Use recursive flag for directories.
Instructions
Copy a file or directory from this host into an environment, over the same connection env_exec uses. local_path is on the host, where this server runs; guest_path is inside the guest and always uses forward slashes, Windows guests included (C:/Users/terrarium/setup.exe). Missing parent directories in the guest are created. Set recursive for a directory. Needs the same credentials env_exec needs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | name of the environment to copy into | |
| recursive | No | copy a directory and everything under it | |
| guest_path | Yes | path inside the guest to copy to, forward slashes even on Windows guests (C:/Users/terrarium/x) | |
| local_path | Yes | path on THIS host to copy from; the server runs on the host, not in the guest |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| guest_path | Yes | ||
| local_path | Yes |