Defined Type: phabricator::libext
- Defined in:
- modules/phabricator/manifests/libext.pp
Overview
Define: phabricator::libext
Installs phutil library extensions
Parameters
- rootdir
-
The path on disk to clone the needed repositories
- libname
-
Case sensitive extension name
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'modules/phabricator/manifests/libext.pp', line 13
define phabricator::libext (
Stdlib::Unixpath $rootdir,
String $libname = $name,
){
# symlink static directories for extensions
$static_dir = "${rootdir}/libext/${libname}/rsrc/webroot-static"
$symlink_dir = "${rootdir}/phabricator/webroot/rsrc/${libname}"
# create the symlink, but only if the target of the link exists
exec { "${libname}_static_dir_exists":
command => "/bin/ln -s ${static_dir} ${symlink_dir}",
onlyif => "/usr/bin/test -e ${static_dir}",
creates => $symlink_dir,
require => File[$rootdir],
}
}
|