Commit fd662c9d34ebbcbb721b50605083a51e139397d6

Authored by Jianwei Han
1 parent d7ba16de2b
Exists in master

Try to avoid inherits

Showing 5 changed files with 29 additions and 8 deletions Side-by-side Diff

modules/people/manifests/hanjianwei.pp
1   -class people::hanjianwei {
  1 +class people::hanjianwei (
  2 + $home = $people::hanjianwei::config::home,
  3 + $dotfiles = $people::hanjianwei::config::dotfiles,
  4 + $srcdir = $people::hanjianwei::config::srcdir
  5 +) inherits people::hanjianwei::config {
2 6 include people::hanjianwei::osx
3 7 include people::hanjianwei::repositories
4 8 include people::hanjianwei::applications
modules/people/manifests/hanjianwei/applications.pp
1   -class people::hanjianwei::applications inherits people::hanjianwei::config {
2   - notify { "${homebrew::config::cachedir}": }
  1 +class people::hanjianwei::applications(
  2 + $home = $people::hanjianwei::config::home,
  3 + $dotfiles = $people::hanjianwei::config::dotfiles
  4 +) {
3 5  
4 6 # Declare all Homebrew packages
5 7 package {
... ... @@ -53,7 +55,7 @@