diff options
Diffstat (limited to 'lib/puppet/file_serving/mount/plugins.rb')
-rw-r--r-- | lib/puppet/file_serving/mount/plugins.rb | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/puppet/file_serving/mount/plugins.rb b/lib/puppet/file_serving/mount/plugins.rb index 5e9e49ab2..d21d6e92e 100644 --- a/lib/puppet/file_serving/mount/plugins.rb +++ b/lib/puppet/file_serving/mount/plugins.rb @@ -4,23 +4,23 @@ require 'puppet/file_serving/mount' # This is a very strange mount because it merges # many directories into one. class Puppet::FileServing::Mount::Plugins < Puppet::FileServing::Mount - # Return an instance of the appropriate class. - def find(relative_path, request) - return nil unless mod = request.environment.modules.find { |mod| mod.plugin(relative_path) } + # Return an instance of the appropriate class. + def find(relative_path, request) + return nil unless mod = request.environment.modules.find { |mod| mod.plugin(relative_path) } - path = mod.plugin(relative_path) + path = mod.plugin(relative_path) - path - end + path + end - def search(relative_path, request) - # We currently only support one kind of search on plugins - return - # them all. - paths = request.environment.modules.find_all { |mod| mod.plugins? }.collect { |mod| mod.plugin_directory } - return(paths.empty? ? nil : paths) - end + def search(relative_path, request) + # We currently only support one kind of search on plugins - return + # them all. + paths = request.environment.modules.find_all { |mod| mod.plugins? }.collect { |mod| mod.plugin_directory } + return(paths.empty? ? nil : paths) + end - def valid? - true - end + def valid? + true + end end |