File: file_separator.pp

package info (click to toggle)
puppet-module-extlib 7.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 420 kB
  • sloc: ruby: 1,035; sh: 15; makefile: 10
file content (7 lines) | stat: -rw-r--r-- 295 bytes parent folder | download
1
2
3
4
5
6
7
# @summary Returns the os specific file path separator.
# @return [String] - The os specific path separator.
# @example Example of how to use
#  extlib::file_separator() => '/'
function extlib::file_separator() >> String {
  ($::facts['kernel'] == 'windows' ) ? { true => "\\", false => '/' }
}