Sha256: e5c3340fa6ff8cdc4f151869ed7592cb37a2c67eceb9a1130374ece970fcab50
Contents?: true
Size: 593 Bytes
Versions: 583
Compression:
Stored size: 593 Bytes
Contents
class Puppet::Settings::DirectorySetting < Puppet::Settings::FileSetting def type :directory end # @api private # # @param option [String] Extra file operation mode information to use # (defaults to read-only mode 'r') # This is the standard mechanism Ruby uses in the IO class, and therefore # encoding may be explicitly like fmode : encoding or fmode : "BOM|UTF-*" # for example, a:ASCII or w+:UTF-8 def open_file(filename, option = 'r', &block) controlled_access do |mode| Puppet::FileSystem.open(filename, mode, option, &block) end end end
Version data entries
583 entries across 583 versions & 3 rubygems