diff options
| author | Luke Kanies <luke@madstop.com> | 2007-10-20 15:06:11 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-10-20 15:06:11 -0500 |
| commit | 8f827ffe4fa1aa25a2e3c7903967e87c55766996 (patch) | |
| tree | c7d5015f0a5a77742bc84e4a2d21d4689b2a0d3e /lib/puppet/file_serving | |
| parent | 08099b7a383987e292357f285e05933e10205660 (diff) | |
| download | puppet-8f827ffe4fa1aa25a2e3c7903967e87c55766996.tar.gz puppet-8f827ffe4fa1aa25a2e3c7903967e87c55766996.tar.xz puppet-8f827ffe4fa1aa25a2e3c7903967e87c55766996.zip | |
Renaming the 'mounts' terminus to 'file_server', and renaming
tests accordingly.
Diffstat (limited to 'lib/puppet/file_serving')
| -rw-r--r-- | lib/puppet/file_serving/terminus_selector.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/file_serving/terminus_selector.rb b/lib/puppet/file_serving/terminus_selector.rb index 08009cd2b..5952cfffa 100644 --- a/lib/puppet/file_serving/terminus_selector.rb +++ b/lib/puppet/file_serving/terminus_selector.rb @@ -9,7 +9,7 @@ require 'puppet/file_serving' # in file-serving indirections. This is necessary because # the terminus varies based on the URI asked for. module Puppet::FileServing::TerminusSelector - PROTOCOL_MAP = {"puppet" => :rest, "file" => :local, "puppetmounts" => :mounts} + PROTOCOL_MAP = {"puppet" => :rest, "file" => :local, "puppetmounts" => :file_server} # Pick an appropriate terminus based on the protocol. def select_terminus(full_uri) @@ -26,10 +26,10 @@ module Puppet::FileServing::TerminusSelector # This provides a convenient mechanism for people to write configurations work # well in both a networked and local setting. if uri.host.nil? and uri.scheme == "puppet" and Puppet.settings[:name] == "puppet" - terminus = :mounts + terminus = :file_server end - if uri.path =~ /^\/modules\b/ and terminus == :mounts + if uri.path =~ /^\/modules\b/ and terminus == :file_server terminus = :modules end |
