Puppet Class: php::phpunit::auto_update
- Defined in:
 - manifests/phpunit/auto_update.pp
 
Overview
Install phpunit package manager
Parameters
- max_age
 - 
Defines number of days after which phpunit should be updated
 - source
 - 
Holds URL to the phpunit source file
 - path
 - 
Holds path to the phpunit executable
 
        14 15 16 17 18 19 20 21 22 23 24 25 26 27  | 
      
        # File 'manifests/phpunit/auto_update.pp', line 14
class php::phpunit::auto_update (
  Integer[1] $max_age,
  String[1] $source,
  Stdlib::Absolutepath $path,
) {
  assert_private()
  exec { 'update phpunit':
    command => "wget ${source} -O ${path}",
    onlyif  => "test `find '${path}' -mtime +${max_age}`",
    path    => ['/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/', '/usr/local/bin', '/usr/local/sbin'],
    require => File[$path],
  }
}
       |