Method: Puppet::GettextConfig.puppet_locale_path
- Defined in:
- lib/puppet/gettext/config.rb
.puppet_locale_path ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Search for puppet gettext config files
192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/puppet/gettext/config.rb', line 192 def self.puppet_locale_path if Puppet::FileSystem.exist?(LOCAL_PATH) LOCAL_PATH elsif Puppet::Util::Platform.windows? && Puppet::FileSystem.exist?(WINDOWS_PATH) WINDOWS_PATH elsif !Puppet::Util::Platform.windows? && Puppet::FileSystem.exist?(POSIX_PATH) POSIX_PATH else nil end end |