diff options
Diffstat (limited to 'lib/puppet/util')
-rw-r--r-- | lib/puppet/util/inifile.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/util/inifile.rb b/lib/puppet/util/inifile.rb index 3c82f7d37..eb943fe13 100644 --- a/lib/puppet/util/inifile.rb +++ b/lib/puppet/util/inifile.rb @@ -180,6 +180,14 @@ module Puppet::Util::IniConfig end end + # Execute BLOCK, passing each file constituting this inifile + # as an argument + def each_file(&block) + @files.keys.each do |file| + yield(file) + end + end + # Return the Section with the given name or nil def [](name) name = name.to_s |