-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle blast predefined configurations (#34)
Handle blast predefined configurations
- Loading branch information
1 parent
4e3c440
commit fbe1600
Showing
4 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
:port: '{{ item.port }}' | ||
:database_dir: '{{ item.path }}' | ||
{% if item.conf_options is defined and item.conf_options %} | ||
{% for option in item.conf_options %} | ||
{% if option.key is defined and option.key and option.value is defined and option.value %} | ||
:{{ option.key }}: '{{ option.value }}' | ||
{% for conf_option in item.conf_options %} | ||
{% if conf_option.key is defined and conf_option.key and conf_option.value is defined and conf_option.value %} | ||
{% if conf_option.key != 'options' %} | ||
:{{ conf_option.key }}: '{{ conf_option.value }}' | ||
{% else %} | ||
:options: | ||
{% for blast_type, blast_configs in conf_option.value.items() %} | ||
:{{ blast_type }}: | ||
{% for blast_config, blast_params in blast_configs.items() %} | ||
:{{ blast_config }}: | ||
{% for blast_param in blast_params %} | ||
- {{ blast_param }} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} |