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

Parameters:

  • max_age (Any)
  • source (Any)
  • path (Any)


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/phpunit/auto_update.pp', line 14

class php::phpunit::auto_update (
  $max_age,
  $source,
  $path,
) {

  if $caller_module_name != $module_name {
    warning('php::phpunit::auto_update is private')
  }

  exec { 'update phpunit':
    command => "wget ${source} -O ${path}",
    onlyif  => "test `find '${path}' -mtime +${max_age}`",
    path    => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ],
    require => File[$path],
  }
}