view tests/cli/test_publish.yaml @ 912:cd236a6af9f6

data: Add access to route metadata in the templating data. It's available under `route`. Also, rename `slug` to `rel_url`, because it's confusing when `slug` could be the route metadata of the same name as provided by the default page source. The old `slug` is still there for backwards compatibility though.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 28 Apr 2017 10:05:14 -0700
parents c78743b11c75
children
line wrap: on
line source

---
config:
    publish:
        test_shell:
            type: shell
            command: this_command_doesnt_exist
args: publish --preview test_shell
---
config:
    publish:
        test_rsync:
            type: rsync
            destination: some_place_that_doesnt_exist
args: publish --preview test_rsync
---
config:
    publish:
        test_sftp:
            type: sftp
            host: some_host_that_doesnt_exist
            path: ~/some/path
            username: fake
            password: fake
args: publish --preview test_sftp