-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
migrate away from erb #357
base: master
Are you sure you want to change the base?
Conversation
95232a6
to
f1c8e1b
Compare
) { | ||
$records = $local_data.map |$record| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a lot going on here. Can you please add some comments about what's happening?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair comment will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated let me know what's missing?
41fe534
to
c270c7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you have any idea on the spec test failure please say because im lost, specificly the error like
77) unbound::stub on archlinux-6-x86_64 unbound::address is expected to contain Concat::Fragment[unbound-stub-lab.example.com] with content supplied string
Failure/Error:
expect(subject).to contain_concat__fragment('unbound-stub-lab.example.com').with_content(
<<~ZONE
stub-zone:
name: "lab.example.com"
stub-addr: "10.0.0.10@10053"
stub-host: "ns1.example.com"
stub-host: "ns2.example.com"
stub-first: no
stub-no-cache: no
ZONE
expected that the catalogue would contain Concat::Fragment[unbound-stub-lab.example.com] with content set to supplied string
Diff:
<The diff is empty, are your objects producing identical `#inspect` output?>
# ./spec/defines/stub_spec.rb:47:in `block (5 levels) in <top (required)>'
) { | ||
$records = $local_data.map |$record| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated let me know what's missing?
8a52da2
to
b29a0e5
Compare
update the templating code to move away from erb and where possible use the print_config function
This PR is currently a WIP, couple of outstanding things
Also happy to split this up into separate PRs if needed