Puppet Class: php::extra::phpdoc::install

Inherits:
php::dependencies
Defined in:
manifests/extra/phpdoc/install.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'manifests/extra/phpdoc/install.pp', line 1

class php::extra::phpdoc::install inherits php::dependencies
{
	$package = 'php5-xsl'
	if !defined(Package[$package]) {
		package {$package: ensure => present}
	}
	wget::fetch {'php::extra::phpdoc::install':
		source      => 'http://phpdoc.org/phpDocumentor.phar',
		destination => '/usr/bin/phpDocumentor.phar',
	}
	file {'/etc/profile.d/phpdoc.sh':
		ensure  => present,
		owner   => root,
		group   => root,
		mode    => 0644,
		content => "alias phpdoc='php /usr/bin/phpDocumentor.phar'",
	}
}