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

Template from configuration or file #48

Merged

Conversation

toddnestor
Copy link
Contributor

This allows templates to be loaded from the configuration and the file system. It adds the check_config_templates_first option to the configuration so you can set whether it checks the configuration templates or the file system templates first.

It will raise an error only if it can't find a template in either place.

I can rename the check_config_templates_first easily enough if we have a better name for it. This will solve issue #47 and allow me to move forward with #46.

It doesn't directly block #46, but it would be annoying to do that first only to have to redo some of the logic because of this PR.

@coveralls
Copy link

coveralls commented Jun 1, 2017

Coverage Status

Coverage decreased (-0.1%) to 97.802% when pulling 8006931 on toddnestor:template-from-configuration-or-file into 93c6a4e on kernow:master.

@coveralls
Copy link

coveralls commented Jun 1, 2017

Coverage Status

Coverage decreased (-0.09%) to 97.81% when pulling 4449edb on toddnestor:template-from-configuration-or-file into 93c6a4e on kernow:master.

1 similar comment
@coveralls
Copy link

coveralls commented Jun 1, 2017

Coverage Status

Coverage decreased (-0.09%) to 97.81% when pulling 4449edb on toddnestor:template-from-configuration-or-file into 93c6a4e on kernow:master.

@coveralls
Copy link

coveralls commented Jun 1, 2017

Coverage Status

Coverage decreased (-0.1%) to 97.806% when pulling 4ede196 on toddnestor:template-from-configuration-or-file into 93c6a4e on kernow:master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 97.806% when pulling 4ede196 on toddnestor:template-from-configuration-or-file into 93c6a4e on kernow:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 97.806% when pulling 4ede196 on toddnestor:template-from-configuration-or-file into 93c6a4e on kernow:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 97.806% when pulling 4ede196 on toddnestor:template-from-configuration-or-file into 93c6a4e on kernow:master.

@coveralls
Copy link

coveralls commented Jun 1, 2017

Coverage Status

Coverage decreased (-0.1%) to 97.806% when pulling 4ede196 on toddnestor:template-from-configuration-or-file into 93c6a4e on kernow:master.

@coveralls
Copy link

coveralls commented Jun 1, 2017

Coverage Status

Coverage decreased (-0.1%) to 97.786% when pulling 576725d on toddnestor:template-from-configuration-or-file into 93c6a4e on kernow:master.

@toddnestor
Copy link
Contributor Author

Ha, finally got the tests passing. I had forgot to update the spec_helper to reset the updated configuration options.

@kernow kernow merged commit 1c56139 into kernow:master Jun 1, 2017
@kernow
Copy link
Owner

kernow commented Jun 1, 2017

Thanks for the great work again @toddnestor, I've pushed version 1.2.0 to rubygems with your changes.

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

Successfully merging this pull request may close these issues.

3 participants