Class: Puppet::FileSystem::AbsolutePathPattern
- Inherits:
-
PathPattern
- Object
- PathPattern
- Puppet::FileSystem::AbsolutePathPattern
- Defined in:
- lib/puppet/file_system/path_pattern.rb
Constant Summary
Constants inherited from PathPattern
PathPattern::ABSOLUTE_UNIX, PathPattern::ABSOLUTE_WINDOWS, PathPattern::CURRENT_DRIVE_RELATIVE_WINDOWS, PathPattern::TRAVERSAL
Instance Method Summary collapse
Methods inherited from PathPattern
absolute, #glob, #prefix_with, relative, #to_s
Instance Method Details
#absolute? ⇒ Boolean
86 87 88 |
# File 'lib/puppet/file_system/path_pattern.rb', line 86 def absolute? true end |
#validate ⇒ Object
90 91 92 93 94 95 |
# File 'lib/puppet/file_system/path_pattern.rb', line 90 def validate super if @pathname.to_s !~ ABSOLUTE_UNIX and @pathname.to_s !~ ABSOLUTE_WINDOWS raise(InvalidPattern, "An absolute PathPattern cannot be a relative path.") end end |