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

Allow to generate multiple files from one, and automatically define locals #42

Open
alem0lars opened this issue Oct 11, 2016 · 0 comments

Comments

@alem0lars
Copy link
Owner

alem0lars commented Oct 11, 2016

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).
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

1 participant