8
8
# Define some common methods for FileServing termini.
9
9
module Puppet::FileServing::TerminusHelper
10
10
# Create model instances for all files in a fileset.
12
args = [:links, :ignore, :recurse].inject({}) { |hash, param| hash[param] = request.options[param] if request.options[param]; hash }
14
inst = model.new(File.join(request.key, file), :path => path, :relative_path => file)
15
19
inst.links = request.options[:links] if request.options[:links]