summaryrefslogtreecommitdiffstats
path: root/lib/puppet/file_serving/mount/modules.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/file_serving/mount/modules.rb')
-rw-r--r--lib/puppet/file_serving/mount/modules.rb30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/puppet/file_serving/mount/modules.rb b/lib/puppet/file_serving/mount/modules.rb
index e5fe56661..86b5e1cdd 100644
--- a/lib/puppet/file_serving/mount/modules.rb
+++ b/lib/puppet/file_serving/mount/modules.rb
@@ -3,23 +3,23 @@ require 'puppet/file_serving/mount'
# This is the modules-specific mount: it knows how to search through
# modules for files. Yay.
class Puppet::FileServing::Mount::Modules < Puppet::FileServing::Mount
- # Return an instance of the appropriate class.
- def find(path, request)
- module_name, relative_path = path.split("/", 2)
- return nil unless mod = request.environment.module(module_name)
+ # Return an instance of the appropriate class.
+ def find(path, request)
+ module_name, relative_path = path.split("/", 2)
+ return nil unless mod = request.environment.module(module_name)
- mod.file(relative_path)
- end
+ mod.file(relative_path)
+ end
- def search(path, request)
- module_name, relative_path = path.split("/", 2)
- return nil unless mod = request.environment.module(module_name)
+ def search(path, request)
+ module_name, relative_path = path.split("/", 2)
+ return nil unless mod = request.environment.module(module_name)
- return nil unless path = mod.file(relative_path)
- [path]
- end
+ return nil unless path = mod.file(relative_path)
+ [path]
+ end
- def valid?
- true
- end
+ def valid?
+ true
+ end
end