Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
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.
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 -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
Expand All @@ -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'
21 changes: 21 additions & 0 deletions config/packages/process/demo.sftp_purge_pattern.yaml
Original file line number Diff line number Diff line change
@@ -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 }}'