Sha256: d1e3d334455ff6dbc792d005a11f77a3dd3f31c71d451bf1544dd6caeb296ed6

Contents?: true

Size: 282 Bytes

Versions: 32

Compression:

Stored size: 282 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

32 entries across 32 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/settings/path_setting.rb
puppet-8.10.0-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.10.0-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.10.0-universal-darwin lib/puppet/settings/path_setting.rb
puppet-8.9.0 lib/puppet/settings/path_setting.rb
puppet-8.9.0-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.9.0-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.9.0-universal-darwin lib/puppet/settings/path_setting.rb
puppet-8.8.1 lib/puppet/settings/path_setting.rb
puppet-8.8.1-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.8.1-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.8.1-universal-darwin lib/puppet/settings/path_setting.rb
puppet-8.7.0 lib/puppet/settings/path_setting.rb
puppet-8.7.0-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.7.0-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.7.0-universal-darwin lib/puppet/settings/path_setting.rb
puppet-8.6.0 lib/puppet/settings/path_setting.rb
puppet-8.6.0-x86-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.6.0-x64-mingw32 lib/puppet/settings/path_setting.rb
puppet-8.6.0-universal-darwin lib/puppet/settings/path_setting.rb