From 320facab7727d19257712928e7a044843e33a368 Mon Sep 17 00:00:00 2001 From: dwishsan Date: Thu, 15 Jun 2023 08:51:52 +0200 Subject: [PATCH] Update PublishDir.groovy Add Closure as possible PublishDir.setMode() input Signed-off-by: dwishsan --- .../src/main/groovy/nextflow/processor/PublishDir.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy b/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy index e6f6b64223..f1ddde85b9 100644 --- a/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy @@ -137,6 +137,10 @@ class PublishDir { this.mode = mode } + void setMode( Closure value ) { + setMode(value.call() as String) + } + static @PackageScope Map resolveTags( tags ) { def result = tags instanceof Closure ? tags.call()