Method: Puppet::FileServing::Base#full_path

Defined in:
lib/vendor/puppet/file_serving/base.rb

#full_path(dummy_argument = :work_arround_for_ruby_GC_bug) ⇒ Object

Return the full path to our file. Fails if there’s no path set.



20
21
22
23
24
25
26
# File 'lib/vendor/puppet/file_serving/base.rb', line 20

def full_path(dummy_argument=:work_arround_for_ruby_GC_bug)
  (if relative_path.nil? or relative_path == "" or relative_path == "."
     path
   else
     File.join(path, relative_path)
   end).gsub(%r{//+}, "/")
end