1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'manifests/tool.pp', line 1
class zf::tool
{
define install($major = $title)
{
if $major == 1 {
file {"$zf::params::toolbin":
ensure => link,
target => "${zf::params::zenddir}/current/bin/zf.sh",
}
} else {
wget::fetch {'wget-zf2':
source => 'https://packages.zendframework.com/zftool.phar',
destination => '/usr/bin/zf',
before => Exec['chmod-zftool'],
}
exec {'chmod-zftool':
command => 'chmod 755 /usr/bin/zf',
path => '/bin',
}
}
}
define uninstall()
{
file {"$zf::params::toolbin": ensure => absent}
}
}
|