Commit e3046bad0122c085667c8a5f89b8e63ac9d5c8b5

Authored by Jianwei Han
1 parent c45e80a8eb
Exists in master

Require dotfiles repo

Showing 4 changed files with 5 additions and 11 deletions Side-by-side Diff

modules/people/manifests/hanjianwei.pp
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 {
  1 +class people::hanjianwei {
6 2 include people::hanjianwei::osx
7 3 include people::hanjianwei::repositories
8 4 include people::hanjianwei::applications
modules/people/manifests/hanjianwei/applications.pp
... ... @@ -87,6 +87,7 @@
87 87 'vim',
88 88 'vimperator',
89 89 'zsh']:
  90 + require => Repository["${::boxen_srcdir}/dotfiles"],
90 91 }
91 92 }
modules/people/manifests/hanjianwei/config.pp
1   -class people::hanjianwei::config {
2   - $home = "/Users/${::boxen_user}"
3   - $srcdir = "${boxen_srcdir}"
4   - $dotfiles = "${srcdir}/dotfiles"
5   -}
modules/people/manifests/hanjianwei/repositories.pp
1 1 class people::hanjianwei::repositories {
2   -
  2 + repository { "${::boxen_srcdir}/dotfiles":
  3 + source => 'hanjianwei/dotfiles',
  4 + }
3 5 }