Class: Puppet::FileServing::Mount::Tasks Private
- Inherits:
-
Puppet::FileServing::Mount
- Object
- Puppet::FileServing::Mount
- Puppet::FileServing::Mount::Tasks
- Defined in:
- lib/puppet/file_serving/mount/tasks.rb
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.
Instance Attribute Summary
Attributes inherited from Puppet::FileServing::Mount
Instance Method Summary collapse
- #find(path, request) ⇒ Object private
- #search(path, request) ⇒ Object private
- #valid? ⇒ Boolean private
Methods inherited from Puppet::FileServing::Mount
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
This class inherits a constructor from Puppet::FileServing::Mount
Instance Method Details
#find(path, request) ⇒ 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.
5 6 7 8 9 10 11 12 |
# File 'lib/puppet/file_serving/mount/tasks.rb', line 5 def find(path, request) raise _("No task specified") if path.to_s.empty? module_name, task_path = path.split("/", 2) mod = request.environment.module(module_name) return nil unless mod mod.task_file(task_path) end |
#search(path, request) ⇒ 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 17 18 19 |
# File 'lib/puppet/file_serving/mount/tasks.rb', line 14 def search(path, request) result = find(path, request) if result [result] end end |
#valid? ⇒ Boolean
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.
21 22 23 |
# File 'lib/puppet/file_serving/mount/tasks.rb', line 21 def valid? true end |