diff --git a/config/packages/process/demo.sftp_purge.yaml b/config/packages/process/demo.sftp_purge_input.yaml similarity index 90% rename from config/packages/process/demo.sftp_purge.yaml rename to config/packages/process/demo.sftp_purge_input.yaml index 1ac24d8..a93387a 100644 --- a/config/packages/process/demo.sftp_purge.yaml +++ b/config/packages/process/demo.sftp_purge_input.yaml @@ -1,6 +1,6 @@ clever_age_process: configurations: - demo.sftp_purge: + demo.sftp_purge_input: description: > A sample process to remove files from flysystem storage. filesystem context variable is used to define source filesystem. @@ -8,7 +8,7 @@ clever_age_process: 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 -c filesystem:remote.storage -c file_pattern:/.csv$/ -vv + bin/console cleverage:process:execute demo.sftp_purge_input -c filesystem:remote.storage -c file_pattern:/.csv$/ -vv options: ui: source: Bar @@ -27,10 +27,10 @@ clever_age_process: service: '@CleverAge\ProcessBundle\Task\PropertyGetterTask' description: > Get filepath within flysystem/storage. - outputs: remove + outputs: remove_input options: property: 'path' - remove: + remove_input: service: '@CleverAge\FlysystemProcessBundle\Task\RemoveFileTask' options: filesystem: 'remote.storage' diff --git a/config/packages/process/demo.sftp_purge_pattern.yaml b/config/packages/process/demo.sftp_purge_pattern.yaml new file mode 100644 index 0000000..2edf623 --- /dev/null +++ b/config/packages/process/demo.sftp_purge_pattern.yaml @@ -0,0 +1,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 }}'