aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/manifests/hook.pp
blob: 08b626ad979deac07f05cb947185e9a0c83b5d65 (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',
    }
}