Jedrzej Nowak 1b28b8f3c4 Change resources structure to match repository one
Change-Id: Ie8d8c092e64890af2f0886303ef3f16752ba5b76
2015-12-18 18:01:20 +01:00

25 lines
480 B
Ruby

forge "{{forge}}"
{%- for module in modules %}
{% if 'type' not in module or module.type == 'forge' -%}
mod '{{module.name}}'
{%- if 'version' in module -%}
, '{{module.version}}'
{%- endif -%}
{%- endif -%}
{%- if 'type' in module and module.type == 'git' -%}
mod '{{module.name}}'
{%- if 'url' in module -%}
,
:git => '{{module.url}}'
{%- endif -%}
{%- if 'ref' in module -%}
,
:ref => '{{module.ref}}'
{%- endif -%}
{%- endif -%}
{%- endfor -%}