You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow to generate multiple files from one, and automatically define locals.
Expected behavior
For example, it should be possible to do:
<% get_var!(:"wireless.interface").each do |interface| %>
- src: wpa_supplicant\.conf$
dst: /etc/wpa_supplicant/wpa_supplicant-<%= interface %>.conf
only: f?wpa_supplicant
<% end %>
Having automatically defined a local named interface with the right value (every time the template is evaluated, it has the right interface value).
Actual behavior
This issue is an enhancement to the current behaviour, that doesn't correctly handle that kind of situations.
Steps to reproduce the problem
Always
Version
Include the output of fizzy version. Here's an example:
$ fizzy version
☞ fizzy version 2.2.0
☞ ruby version ruby 2.4.0p-1
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38295743-allow-to-generate-multiple-files-from-one-and-automatically-define-locals?utm_campaign=plugin&utm_content=tracker%2F10471801&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F10471801&utm_medium=issues&utm_source=github).
The text was updated successfully, but these errors were encountered:
Allow to generate multiple files from one, and automatically define locals.
Expected behavior
For example, it should be possible to do:
Having automatically defined a local named
interface
with the right value (every time the template is evaluated, it has the rightinterface
value).Actual behavior
This issue is an enhancement to the current behaviour, that doesn't correctly handle that kind of situations.
Steps to reproduce the problem
Always
Version
Include the output of
fizzy version
. Here's an example:The text was updated successfully, but these errors were encountered: