aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/manifests/hook.pp
blob: a29ae22d2478274dfd3af3f45ecb917f935a56c0 (plain)
1
2
3
4
5
6
7
8
9
define subversion::hook($content, $type) {
    $array = split($name,'\|')
    $repo = $array[0]
    $script = $array[1]
    file { "${repo}/hooks/${type}.d/${script}":
        content => $content,
        mode    => '0755',
    }
}