Class: Puppet::FileServing::Mount Private
- Includes:
- Util::Logging
- Defined in:
- lib/puppet/file_serving/mount.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Broker access to the filesystem, converting local URIs into metadata or content objects.
Defined Under Namespace
Classes: File, Locales, Modules, PluginFacts, Plugins, Scripts, Tasks
Instance Attribute Summary collapse
- #name ⇒ Object readonly private
Instance Method Summary collapse
- #find(path, options) ⇒ Object private
-
#initialize(name) ⇒ Mount
constructor
private
Create our object.
- #search(path, options) ⇒ Object private
- #to_s ⇒ Object private
-
#validate ⇒ Object
private
A noop.
Methods included from Util::Logging
#clear_deprecation_warnings, #debug, #deprecation_warning, #format_backtrace, #format_exception, #get_deprecation_offender, #log_and_raise, #log_deprecations_to_file, #log_exception, #puppet_deprecation_warning, #send_log, setup_facter_logging!, #warn_once
Constructor Details
#initialize(name) ⇒ Mount
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create our object. It must have a name.
19 20 21 22 23 24 25 26 |
# File 'lib/puppet/file_serving/mount.rb', line 19 def initialize(name) unless name =~ %r{^[-\w]+$} raise ArgumentError, _("Invalid mount name format '%{name}'") % { name: name } end @name = name super() end |
Instance Attribute Details
#name ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/puppet/file_serving/mount.rb', line 12 def name @name end |
Instance Method Details
#find(path, options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/puppet/file_serving/mount.rb', line 14 def find(path, ) raise NotImplementedError end |
#search(path, options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 |
# File 'lib/puppet/file_serving/mount.rb', line 28 def search(path, ) raise NotImplementedError end |
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 |
# File 'lib/puppet/file_serving/mount.rb', line 32 def to_s "mount[#{@name}]" end |
#validate ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A noop.
37 38 |
# File 'lib/puppet/file_serving/mount.rb', line 37 def validate end |