summaryrefslogtreecommitdiff
path: root/lib/puppet/provider
diff options
context:
space:
mode:
authorBrett Lentz <blentz@classmates.com>2010-09-14 14:14:45 -0700
committerBrett Lentz <blentz@classmates.com>2010-09-14 14:14:45 -0700
commitd6f233e759f5424f32192c2059c097104b55e86b (patch)
tree99da556480379a2f952042011be4405d728cb3ba /lib/puppet/provider
parent21faae50158ebca5b08c855140885561d42fb37d (diff)
downloadpuppet-vcsrepo-d6f233e759f5424f32192c2059c097104b55e86b.tar.gz
puppet-vcsrepo-d6f233e759f5424f32192c2059c097104b55e86b.tar.bz2
git: rework how to do excludes
Diffstat (limited to 'lib/puppet/provider')
-rw-r--r--lib/puppet/provider/vcsrepo/git.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb
index 38c247b..bbcf14c 100644
--- a/lib/puppet/provider/vcsrepo/git.rb
+++ b/lib/puppet/provider/vcsrepo/git.rb
@@ -221,11 +221,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
end
def set_excludes
- open(File.join(@resource.value(:path), '.git/info/exclude'), 'w') do |f|
- @resource.value(:excludes).each do |ex|
- f.write(ex + "\n")
- end
- end
+ at_path { open('.git/info/exclude', 'w') { |f| @resource.value(:excludes).each { |ex| f.write(ex + "\n") }}}
end
def get_revision(rev)