Class: Puppet::FileServing::Mount::Tasks
Instance Attribute Summary
#name
Instance Method Summary
collapse
#initialize, #to_s, #validate
#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
Instance Method Details
#find(path, request) ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/puppet/file_serving/mount/tasks.rb', line 6
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
16
17
18
19
20
21
|
# File 'lib/puppet/file_serving/mount/tasks.rb', line 16
def search(path, request)
result = find(path, request)
if result
[result]
end
end
|
#valid? ⇒ Boolean
23
24
25
|
# File 'lib/puppet/file_serving/mount/tasks.rb', line 23
def valid?
true
end
|