Skip to content

Commit 4a85c80

Browse files
committed
Fix how links are created for play
1 parent 191dfad commit 4a85c80

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

manifests/init.pp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,22 @@
1717

1818
file { "${boxen::config::homebrewdir}/bin/play2":
1919
ensure => 'link',
20-
target => "${boxen::config::homebrewdir}/Cellar/play/${version}/bin/play",
20+
target => "../Cellar/play/${version}/bin/play",
21+
}
22+
23+
file { "${boxen::config::homebrewdir}/bin/play21":
24+
ensure => 'link',
25+
target => "../Cellar/play/${version}/bin/play",
26+
}
27+
28+
file { "${boxen::config::homebrewdir}/bin/play211":
29+
ensure => 'link',
30+
target => "../Cellar/play/${version}/bin/play",
31+
}
32+
33+
# unlink play with brew, because we want to create our own symlinks
34+
exec { "${boxen::config::homebrewdir}/bin/brew unlink play":
35+
require => Package["boxen/brews/play"]
2136
}
2237
}
2338

manifests/v1_2.pp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
file { "${boxen::config::homebrewdir}/bin/play1":
1919
ensure => 'link',
20-
target => "${boxen::config::homebrewdir}/Cellar/play12/${version}/bin/play",
20+
target => "../Cellar/play12/${version}/bin/play",
21+
}
22+
23+
exec { "${boxen::config::homebrewdir}/bin/brew unlink play12":
24+
require => Package["boxen/brews/play12"]
2125
}
2226
}

0 commit comments

Comments
 (0)