From 506269fdfddbf04acd113299496f2f2c6b79b662 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 27 Jun 2006 18:46:45 +0000 Subject: adding hooks for ignoring files in the plugins directory, and defaulting to ignoring cvs and svn files git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1320 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/client/master.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/puppet/client/master.rb b/lib/puppet/client/master.rb index ee687cd3e..4a4541e7c 100644 --- a/lib/puppet/client/master.rb +++ b/lib/puppet/client/master.rb @@ -28,7 +28,9 @@ class Puppet::Client::MasterClient < Puppet::Client is used for retrieval, so anything that is a valid file source can be used here."], :pluginsync => [false, - "Whether plugins should be synced with the central server."] + "Whether plugins should be synced with the central server."], + :pluginsignore => [".svn CVS", + "What files to ignore when pulling down plugins.."] ) @drivername = :Master @@ -439,7 +441,9 @@ class Puppet::Client::MasterClient < Puppet::Client plugins.push Puppet::Type.type(:file).create( :path => Puppet[:pluginpath], :recurse => true, - :source => Puppet[:pluginsource] + :source => Puppet[:pluginsource], + :ignore => Puppet[:pluginsignore].split(/\s+/), + :tag => "plugins" ) trans = plugins.evaluate -- cgit