Method: Puppet::Settings::FileSetting#exclusive_open
- Defined in:
- lib/puppet/settings/file_setting.rb
#exclusive_open(option = 'r', &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
189 190 191 192 193 |
# File 'lib/puppet/settings/file_setting.rb', line 189 def exclusive_open(option = 'r', &block) controlled_access do |mode| Puppet::FileSystem.exclusive_open(file(), mode, option, &block) end end |