Recipes/SubversionIntegration: svnserve.pp.patch
| File svnserve.pp.patch, 1.2 kB (added by javier, 1 year ago) |
|---|
-
svnserve.pp
old new 15 15 owner => root, 16 16 group => root 17 17 } 18 $svncmd = $user ? { 19 false => "/usr/bin/svn co --non-interactive $source/$name .", 20 default => "/usr/bin/svn co --non-interactive --username $user --password '$password' $source/$name ." 21 } 18 $svnparms = $user ? { 19 false => "--non-interactive", 20 default => "--non-interactive --username '$user' --password '$password'", 21 } 22 $svncmd = "/usr/bin/svn $svnparms" 23 22 24 exec { "svnco-$name": 23 command => $svncmd,25 command => "$svncmd checkout $source/$name .", 24 26 cwd => $path, 25 27 require => File[$path], 26 28 creates => "$path/.svn" 27 29 } 28 30 exec { "svnupdate-$name": 29 command => "/usr/bin/svn update", 31 command => "$svncmd update", 32 cwd => $path, 30 33 require => Exec["svnco-$name"], 31 onlyif => '/usr/bin/svn status -u --non-interactive | /bin/grep "\*"', 32 cwd => $path 34 onlyif => "$svncmd status -u --non-interactive | /bin/grep -E \"\*|\!\"", 33 35 } 34 36 } 35 37