Sha256: 608020858f91e346a8c993392c972f8712d208395ac0d143c337589b3286727f

Contents?: true

Size: 281 Bytes

Versions: 20

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true
class Puppet::Settings::PathSetting < Puppet::Settings::StringSetting
  def munge(value)
    if value.is_a?(String)
      value = value.split(File::PATH_SEPARATOR).map { |d| File.expand_path(d) }.join(File::PATH_SEPARATOR)
    end
    value
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/settings/path_setting.rb
puppet-8.3.0-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.3.0-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.3.0-universal-darwin lib/puppet/settings/path_setting.rb
puppet-8.3.1 lib/puppet/settings/path_setting.rb
puppet-8.3.1-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.3.1-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.3.1-universal-darwin lib/puppet/settings/path_setting.rb
puppet-8.2.0 lib/puppet/settings/path_setting.rb
puppet-8.2.0-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.2.0-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.2.0-universal-darwin lib/puppet/settings/path_setting.rb
puppet-8.1.0 lib/puppet/settings/path_setting.rb
puppet-8.1.0-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.1.0-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.1.0-universal-darwin lib/puppet/settings/path_setting.rb
puppet-8.0.1 lib/puppet/settings/path_setting.rb
puppet-8.0.1-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.0.1-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.0.1-universal-darwin lib/puppet/settings/path_setting.rb