Last change
on this file since 30960 was 30960, checked in by davidb, 7 years ago |
Switch to using Puppet to provision machine. Strongly based on files developed for spark-hdfs cluster
|
File size:
508 bytes
|
Line | |
---|
1 | # Emulate the is_absolute_path and validate_absolute_path functions
|
---|
2 | #
|
---|
3 | # The first pattern is originally from is_absolute_path, which had it from 2.7.x's lib/puppet/util.rb Puppet::Util.absolute_path?
|
---|
4 | # slash = '[\\\\/]'
|
---|
5 | # name = '[^\\\\/]+'
|
---|
6 | # %r!^(([A-Z]:#{slash})|(#{slash}#{slash}#{name}#{slash}#{name})|(#{slash}#{slash}\?#{slash}#{name}))!i,
|
---|
7 | type Stdlib::Compat::Absolute_path = Variant[Pattern[/^(([a-zA-Z]:[\\\/])|([\\\/][\\\/][^\\\/]+[\\\/][^\\\/]+)|([\\\/][\\\/]\?[\\\/][^\\\/]+))/], Pattern[/^\//]]
|
---|
Note:
See
TracBrowser
for help on using the repository browser.