HomePhorge

(#8410) Add a helper to Puppet::Util to determine absoluteness of a path
fb6df317016bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#8410) Add a helper to Puppet::Util to determine absoluteness of a path

The method Puppet::Util.absolute_path? accepts a path and an optional
platform (:windows or :posix) as an argument. If no platform is given,
it will default to the local platform. The method will return true if
the path provided is absolute on that platform, and false if it is not.
This method is also being used in Puppet::Util.which in lieu of testing
against a platform-specific regex inline.

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUc2a432a1f204: maint: Fix trailing whitespace in lib/puppet/util.rb
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPUfb6df317016b: (#8410) Add a helper to Puppet::Util to determine absoluteness of a path (authored by Nick Lewis <nick@puppetlabs.com>).Aug 24 2011, 2:15 AM