fix(conditionals): wrong onlyif specification
[arvados-formula.git] / arvados / ruby / package / clean.sls
1 # -*- coding: utf-8 -*-
2 # vim: ft=sls
3
4 {#- Get the `tplroot` from `tpldir` #}
5 {%- set tplroot = tpldir.split('/')[0] %}
6 {%- from tplroot ~ "/map.jinja" import arvados with context %}
7
8 {%- for gm in arvados.shell.gem.name %}
9 arvados-shell-package-clean-gem-{{ gm }}-removed:
10   gem.removed:
11     - name: {{ gm }}
12     - require_in:
13       - pkg: arvados-shell-package-clean-gems-deps-pkg-removed
14 {%- endfor %}
15
16 arvados-shell-package-clean-gems-deps-pkg-removed:
17   pkg.removed:
18     - pkgs: {{ arvados.ruby.gems_deps | json }}
19     - onlyif: test "{{ arvados.ruby.manage_gems_deps | lower }}" = "true"
20
21 arvados-shell-package-clean-pkg-removed:
22   pkg.removed:
23     - pkgs: {{ arvados.shell.pkg.name | json }}
24
25 arvados-shell-package-clean-ruby-pkg-removed:
26   pkg.removed:
27     - name: {{ arvados.ruby.pkg }}
28     - onlyif: test "{{ arvados.ruby.manage_ruby | lower }}" = "true"