From 7c68fdb46802dbd3a57f5f7be3333ed6feacad45 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 27 Aug 2008 21:53:00 -0700 Subject: Fixing FileServing::Base so that it can recurse on a single file. It was throwing exceptions if you tried to use it on a file instead of a directory. Signed-off-by: Luke Kanies --- lib/puppet/file_serving/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/file_serving/base.rb b/lib/puppet/file_serving/base.rb index 9a50833de..c59a54786 100644 --- a/lib/puppet/file_serving/base.rb +++ b/lib/puppet/file_serving/base.rb @@ -23,7 +23,7 @@ class Puppet::FileServing::Base # Return the full path to our file. Fails if there's no path set. def full_path - if relative_path.nil? or relative_path == "" + if relative_path.nil? or relative_path == "" or relative_path == "." path else File.join(path, relative_path) -- cgit