Sha256: a6181a970ff34f471e9b286c46a1a2a38afc66667b257f6f3fb5297c57a1cb33
Contents?: true
Size: 623 Bytes
Versions: 20
Compression:
Stored size: 623 Bytes
Contents
# frozen_string_literal: true 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
20 entries across 20 versions & 1 rubygems