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