Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Any helper method to apply command template #82

Open
bashiransari opened this issue May 15, 2018 · 0 comments
Open

Adding Any helper method to apply command template #82

bashiransari opened this issue May 15, 2018 · 0 comments

Comments

@bashiransari
Copy link
Contributor

bashiransari commented May 15, 2018

Having any helper method in templates to extend contains method to check for more than one item at a time in a list.

sample usage in template file

_#add serviceName if any of "iis" or "database" exists in deployment.tags_
{{- if (any (property $module "deployment.tags") ("iis", "database")) }}
    "serviceName": "{{property $module "deployment.serviceName"}}",
{{- end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants