Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if not before.nil?
# Insert before given path
aug.insert(before, "path", true)
entry_path = "#{fpath}/path[count(*)=0]"
elsif not after.nil?
# Insert after given path
aug.insert(after, "path", false)
entry_path = "#{fpath}/path[count(*)=0]"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.