diff options
author | Azul <azul@riseup.net> | 2013-08-27 14:16:00 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-08-27 14:16:54 +0200 |
commit | b1a8cfe5f82f2d96514fbfacff930fdd58dec5b8 (patch) | |
tree | c9b5ef52f1c048136b1e19ac41fe9a9fe97fc468 /puppet/modules/site_webapp/manifests/git.pp | |
parent | 3aa062ecb934731aa5876e60bb7c9086bcbb5742 (diff) |
move git::changes into git module, whitespace fix
Diffstat (limited to 'puppet/modules/site_webapp/manifests/git.pp')
-rw-r--r-- | puppet/modules/site_webapp/manifests/git.pp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/puppet/modules/site_webapp/manifests/git.pp b/puppet/modules/site_webapp/manifests/git.pp deleted file mode 100644 index 908bc1a4..00000000 --- a/puppet/modules/site_webapp/manifests/git.pp +++ /dev/null @@ -1,33 +0,0 @@ -# Usage -# git::changes { name: -# cwd => "/path/to/git/" -# user => "me", -# ensure => {*assume-unchanged*, tracked} -# } -# - -define git::changes ( $cwd, $user, $ensure='assume-unchanged' ) { - - case $ensure { - default: { err ( "unknown ensure value '${ensure}'" ) } - - assume-unchanged: { - exec { "assume-unchanged ${name}": - command => "/usr/bin/git update-index --assume-unchanged ${name}", - cwd => $cwd, - user => $user, - unless => "/usr/bin/git ls-files -v | grep '^[ch] ${name}'", - } - } - - tracked: { - exec { "assume-unchanged ${name}": - command => "/usr/bin/git update-index --no-assume-unchanged ${name}", - cwd => $cwd, - user => $user, - onlyif => "/usr/bin/git ls-files -v | grep '^[ch] ${name}'", - } - } - } -} - |