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 override the target path of a templated file #229

Open
ccremer opened this issue Jun 24, 2021 · 0 comments
Open

Allow to override the target path of a templated file #229

ccremer opened this issue Jun 24, 2021 · 0 comments

Comments

@ccremer
Copy link

ccremer commented Jun 24, 2021

Files specified in config_defaults.yml and .sync.yml assume a static path that is the same for all managed modules.

however, there are cases where the content of a ERB template is managed in those modules, but the directory where this file is being saved is different for each module.

For example, the template may have a template/some_file.ext, but in the managed module it could be the module name, e.g. my-module/some_file.ext.

I could imagine a config like this:
.sync.yml

template/some_file.ext:
  targetPath: my-module/some_file.ext

or in configs_defaults.yml:

template/some_file.ext:
  targetPath: <%= @metadata[:module_name] %>/some_file.ext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant