class Puppet::FileServing::Mount
Broker access to the filesystem, converting local URIs into metadata or content objects.
Attributes
name[R]
Public Class Methods
new(name)
click to toggle source
Create our object. It must have a name.
Calls superclass method
Object::new
# File lib/puppet/file_serving/mount.rb 18 def initialize(name) 19 unless name =~ %r{^[-\w]+$} 20 raise ArgumentError, _("Invalid mount name format '%{name}'") % { name: name } 21 end 22 @name = name 23 24 super() 25 end
Public Instance Methods
find(path, options)
click to toggle source
# File lib/puppet/file_serving/mount.rb 13 def find(path, options) 14 raise NotImplementedError 15 end
search(path, options)
click to toggle source
# File lib/puppet/file_serving/mount.rb 27 def search(path, options) 28 raise NotImplementedError 29 end
to_s()
click to toggle source
# File lib/puppet/file_serving/mount.rb 31 def to_s 32 "mount[#{@name}]" 33 end
validate()
click to toggle source
A noop.
# File lib/puppet/file_serving/mount.rb 36 def validate 37 end