forked from cleverage/process-bundle-ui-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.sftp_purge_pattern.yaml
21 lines (21 loc) · 1.04 KB
/
demo.sftp_purge_pattern.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clever_age_process:
configurations:
demo.sftp_purge_pattern:
description: >
A sample process to remove files from flysystem storage.
filesystem context variable is used to define source filesystem.
file_pattern context variable is used to define file_pattern to match.
Following help show us how to delete all .csv files from filesystem remote.storage
See config/packages/flysystem.yaml to see configured flysystem/storages.
help: >
bin/console cleverage:process:execute demo.sftp_purge_pattern -c filesystem:remote.storage -c file_pattern:/.csv$/ -vv
options:
ui:
source: Bar
target: Foo
tasks:
remove_pattern:
service: '@CleverAge\FlysystemProcessBundle\Task\RemoveFileTask'
options:
filesystem: '{{ filesystem }}'
file_pattern: '{{ file_pattern }}'