lib/custom_facts/core/execution.rb
# Determine in a platform-specific way whether a path is absolute. This
# defaults to the local platform if none is specified.
#
# @param path [String] the path to check
# @param platform [:posix,:windows,nil] the platform logic to use
Determine in a platform-specific way whether a path is absolute. This
defaults to the local platform if none is specified.
Determine in a platform - specific way whether a path is absolute . This defaults to the local platform if none is specified .
def absolute_path?(path, platform = nil)
        case platform
        when :posix
          Facter::Core::Execution::Posix.new.absolute_path?(path)
        when :windows
          Facter::Core::Execution::Windows.new.absolute_path?(path)
        else
          @@impl.absolute_path?(path)
        end
      end
def absolute_path? ( path , platform = nil ) case platform when :posix Facter :: Core :: Execution :: Posix . new . absolute_path? ( path ) when :windows Facter :: Core :: Execution :: Windows . new . absolute_path? ( path ) else @@impl . absolute_path? ( path ) end end
Determine in a platform-specific way whether a path is absolute.
Determine in a platform - specific way whether a path is absolute .
path
the path to check
the path to check
platform
the platform logic to use
the platform logic to use