Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 16f58ec

Browse files
committed
Ensure the parent tap directory exists too
1 parent 0a2444f commit 16f58ec

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

manifests/formula.pp

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@
1010
default => $source
1111
}
1212

13-
$boxen_tapdir = "${homebrew::tapsdir}/boxen/homebrew-brews"
13+
$boxen_tapdir = "${homebrew::tapsdir}/boxen"
1414

1515
ensure_resource('file', $boxen_tapdir, {
1616
'ensure' => 'directory',
1717
'owner' => $::boxen_user,
18-
'group' => 'staff'
18+
'group' => 'staff',
1919
})
2020

21-
file { "${boxen_tapdir}/${name}.rb":
21+
ensure_resource('file', "${boxen_tapdir}/homebrew-brews", {
22+
'ensure' => 'directory',
23+
'owner' => $::boxen_user,
24+
'group' => 'staff',
25+
'require' => File[$boxen_tapdir],
26+
})
27+
28+
file { "${boxen_tapdir}/homebrew-brews/${name}.rb":
2229
source => $formula_source,
23-
require => File[$boxen_tapdir]
30+
require => File["${boxen_tapdir}/homebrew-brews"]
2431
}
2532
}

0 commit comments

Comments
 (0)