Skip to content

Instantly share code, notes, and snippets.

@pditommaso
Created June 7, 2017 12:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pditommaso/338b67c5f25ec31061e4c48866f10f35 to your computer and use it in GitHub Desktop.
def wrap( cmd ) {
def prefix =
'''
echo foo
'''
prefix.stripIndent() + cmd
}
process doThis {
script:
wrap """
echo do this
"""
}
process doThat {
script:
wrap """
echo do that
"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment