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()