7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'manifests/init.pp', line 7
class brewcask {
require homebrew
$cask_home = $::brewcask_root
$cask_room = "${cask_home}/Caskroom"
homebrew::tap { 'caskroom/cask': }
file { $cask_home:
ensure => directory
}
# This prevents typing root password the first time a cask is installed
file { $cask_room:
ensure => directory,
before => Package['brew-cask'],
require => File[$cask_home]
}
package { 'brew-cask':
require => Homebrew::Tap['caskroom/cask'],
provider => homebrew
}
boxen::env_script { 'brewcask':
content => template('brewcask/env.sh.erb'),
priority => highest,
}
Package['brew-cask'] -> Package <| provider == brewcask |>
}
|