Class: Puppet::FileServing::Mount
- Inherits:
-
Network::AuthStore
- Object
- Network::AuthStore
- Puppet::FileServing::Mount
- Includes:
- Util::Logging
- Defined in:
- lib/puppet/file_serving/mount.rb
Overview
Broker access to the filesystem, converting local URIs into metadata or content objects.
Defined Under Namespace
Classes: File, Modules, Plugins
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #find(path, options) ⇒ Object
-
#initialize(name) ⇒ Mount
constructor
Create our object.
- #search(path, options) ⇒ Object
- #to_s ⇒ Object
-
#validate ⇒ Object
A noop.
Methods included from Util::Logging
Methods inherited from Network::AuthStore
#allow, #allowed?, #deny, #empty?, #globalallow?, #interpolate, #reset_interpolation
Constructor Details
#initialize(name) ⇒ Mount
Create our object. It must have a name.
24 25 26 27 28 29 30 31 |
# File 'lib/puppet/file_serving/mount.rb', line 24 def initialize(name) unless name =~ %r{^[-\w]+$} raise ArgumentError, "Invalid mount name format '#{name}'" end @name = name super() end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
17 18 19 |
# File 'lib/puppet/file_serving/mount.rb', line 17 def name @name end |
Instance Method Details
#find(path, options) ⇒ Object
19 20 21 |
# File 'lib/puppet/file_serving/mount.rb', line 19 def find(path, ) raise NotImplementedError end |
#search(path, options) ⇒ Object
33 34 35 |
# File 'lib/puppet/file_serving/mount.rb', line 33 def search(path, ) raise NotImplementedError end |
#to_s ⇒ Object
37 38 39 |
# File 'lib/puppet/file_serving/mount.rb', line 37 def to_s "mount[#{@name}]" end |
#validate ⇒ Object
A noop.
42 43 |
# File 'lib/puppet/file_serving/mount.rb', line 42 def validate end |