module-common/plugins/puppet/parser/functions/dirname.rb
David Schmitt d9a3c7617a common: remove hand made plugins install defines and use matt's plugins patch
This moves all facts and puppet plugins to the plugins/ directory of modules to
get the benefits of Matt's plugins patch, that distributes these files before
the configuration is requested. This reduces the number of configuration runs to
convergence by one.
2007-10-06 10:11:47 +02:00

7 lines
169 B
Ruby

# get the directory corresponding to this filename
module Puppet::Parser::Functions
newfunction(:dirname, :type => :rvalue) do |args|
File.dirname(args[0])
end
end