class Puppet::Settings::DirectorySetting

Public Instance Methods

open_file(filename, option = 'r', &block) click to toggle source

@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
   # File lib/puppet/settings/directory_setting.rb
13 def open_file(filename, option = 'r', &block)
14   controlled_access do |mode|
15     Puppet::FileSystem.open(filename, mode, option, &block)
16   end
17 end
type() click to toggle source
  # File lib/puppet/settings/directory_setting.rb
2 def type
3   :directory
4 end