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
19 def initialize(name)
20   unless name =~ %r{^[-\w]+$}
21     raise ArgumentError, _("Invalid mount name format '%{name}'") % { name: name }
22   end
23   @name = name
24 
25   super()
26 end

Public Instance Methods

find(path, options) click to toggle source
   # File lib/puppet/file_serving/mount.rb
14 def find(path, options)
15   raise NotImplementedError
16 end
to_s() click to toggle source
   # File lib/puppet/file_serving/mount.rb
32 def to_s
33   "mount[#{@name}]"
34 end
validate() click to toggle source

A noop.

   # File lib/puppet/file_serving/mount.rb
37 def validate
38 end