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

Version Path
puppet-7.17.0 lib/puppet/settings/directory_setting.rb
puppet-7.17.0-x86-mingw32 lib/puppet/settings/directory_setting.rb
puppet-7.17.0-x64-mingw32 lib/puppet/settings/directory_setting.rb
puppet-7.17.0-universal-darwin lib/puppet/settings/directory_setting.rb
puppet-6.27.0 lib/puppet/settings/directory_setting.rb
puppet-6.27.0-x86-mingw32 lib/puppet/settings/directory_setting.rb
puppet-6.27.0-x64-mingw32 lib/puppet/settings/directory_setting.rb
puppet-6.27.0-universal-darwin lib/puppet/settings/directory_setting.rb
puppet-7.16.0 lib/puppet/settings/directory_setting.rb
puppet-7.16.0-x86-mingw32 lib/puppet/settings/directory_setting.rb
puppet-7.16.0-x64-mingw32 lib/puppet/settings/directory_setting.rb
puppet-7.16.0-universal-darwin lib/puppet/settings/directory_setting.rb
puppet-7.15.0 lib/puppet/settings/directory_setting.rb
puppet-7.15.0-x86-mingw32 lib/puppet/settings/directory_setting.rb
puppet-7.15.0-x64-mingw32 lib/puppet/settings/directory_setting.rb
puppet-7.15.0-universal-darwin lib/puppet/settings/directory_setting.rb
puppet-6.26.0 lib/puppet/settings/directory_setting.rb
puppet-6.26.0-x86-mingw32 lib/puppet/settings/directory_setting.rb
puppet-6.26.0-x64-mingw32 lib/puppet/settings/directory_setting.rb
puppet-6.26.0-universal-darwin lib/puppet/settings/directory_setting.rb