diff options
author | David Lutterkort <lutter@redhat.com> | 2009-05-30 23:23:11 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-06-03 23:34:52 +1000 |
commit | 4951cdf4c66bfbad6495ffcab0b53d7601e73a44 (patch) | |
tree | 9147f69a0c054c8da45d8b3e25c93638690c79e1 /lib/puppet/reference/function.rb | |
parent | 0d5a24dd0ba4c7d1cc4827cb2d52411447202eae (diff) | |
download | puppet-4951cdf4c66bfbad6495ffcab0b53d7601e73a44.tar.gz puppet-4951cdf4c66bfbad6495ffcab0b53d7601e73a44.tar.xz puppet-4951cdf4c66bfbad6495ffcab0b53d7601e73a44.zip |
* provider/augeas: ensure Augeas connection is always closed
Turn code like
open_augeas
...
close_augeas
into
begin
open_augeas
...
ensure
close_augeas
end
Would have liked to pass the '...' as a block into a 'with_augeas' method,
but that makes the spec tests fail in ways I don't understand.
Diffstat (limited to 'lib/puppet/reference/function.rb')
0 files changed, 0 insertions, 0 deletions