Commit d7ba16de2b6d371d6b00f3a5ef420847b47dc601

Authored by Jianwei Han
1 parent db7b8e3bfa
Exists in master

Refactor

Showing 1 changed file with 43 additions and 43 deletions Inline Diff

modules/people/manifests/hanjianwei/applications.pp
class people::hanjianwei::applications inherits people::hanjianwei::config { 1 1 class people::hanjianwei::applications inherits people::hanjianwei::config {
notify { "${homebrew::config::cachedir}": } 2 2 notify { "${homebrew::config::cachedir}": }
3 3
# Declare all Homebrew packages 4 4 # Declare all Homebrew packages
$brew_pkgs = [ 5 5 package {
'wget', 6 6 [
'qt5', 7 7 'wget',
'tmux', 8 8 'qt5',
'vim' 9 9 'tmux',
] 10 10 'vim'
package { $brew_pkgs: } 11 11 ]:
12 }
12 13
homebrew::tap { 'homebrew/science': } 13 14 homebrew::tap { 'homebrew/science': }
-> 14 15 ->
package { 'opencv': } 15 16 package { 'opencv': }
16 17
# Declare all Hombrew Cask packages 17 18 # Declare all Hombrew Cask packages
include brewcask 18 19 include brewcask
19 20
$cask_pkgs = [ 20 21 package {
'acorn', 21 22 [
'alfred', 22 23 'acorn',
'atom', 23 24 'alfred',
'bettertouchtool', 24 25 'atom',
'caffeine', 25 26 'bettertouchtool',
'cleanmymac', 26 27 'caffeine',
'dropbox', 27 28 'cleanmymac',
'evernote', 28 29 'dropbox',
'fantastical', 29 30 'evernote',
'firefox', 30 31 'fantastical',
'google-chrome', 31 32 'firefox',
'hazel', 32 33 'google-chrome',
'iterm2', 33 34 'hazel',
'keyboard-maestro', 34 35 'iterm2',
'keyremap4macbook', 35 36 'keyboard-maestro',
'mactex', 36 37 'keyremap4macbook',
'omnifocus', 37 38 'mactex',
'onepassword', 38 39 'omnifocus',
'parallels', 39 40 'onepassword',
'pycharm-ce', 40 41 'parallels',
'scapple', 41 42 'pycharm-ce',
'screenflow', 42 43 'scapple',
'scrivener', 43 44 'screenflow',
'seil', 44 45 'scrivener',
'shiori', 45 46 'seil',
'trim-enabler', 46 47 'shiori',
'qq', 47 48 'trim-enabler',
'qt-creator', 48 49 'qq',
'vagrant', 49 50 'qt-creator',
'virtualbox', 50 51 'vagrant',
'welly', 51 52 'virtualbox',
'xmind' 52 53 'welly',
] 53 54 'xmind'
54 55 ]:
package { $cask_pkgs: 55
provider => 'brewcask' 56 56 provider => 'brewcask'
} 57 57 }
58 58
# Taps 59 59 # Taps
homebrew::tap { 'caskroom/fonts': } 60 60 homebrew::tap { 'caskroom/fonts': }
-> 61 61 ->
package { 'font-inconsolata-for-powerline': 62 62 package { 'font-inconsolata-for-powerline':
provider => 'brewcask' 63 63 provider => 'brewcask'
} 64 64 }
65 65
homebrew::tap { 'caskroom/versions': } 66 66 homebrew::tap { 'caskroom/versions': }
-> 67 67 ->
package { 'intellij-idea-ultimate12': 68 68 package { 'intellij-idea-ultimate12':
provider => 'brewcask' 69 69 provider => 'brewcask'
} 70 70 }
71 71
homebrew::tap { 'railwaycat/emacsmacport': } 72 72 homebrew::tap { 'railwaycat/emacsmacport': }
-> 73 73 ->
package { 'emacs-mac': 74 74 package { 'emacs-mac':
provider => 'brewcask' 75 75 provider => 'brewcask'
} 76 76 }
77 77
# tmux 78 78 # tmux
Package['tmux'] 79 79 Package['tmux']
-> 80 80 ->
file { "${home}/.tmux.conf": 81 81 file { "${home}/.tmux.conf":
ensure => link, 82 82 ensure => link,
target => "${dotfiles}/tmux/tmux.conf", 83 83 target => "${dotfiles}/tmux/tmux.conf",
require => Repository["${dotfiles}"] 84 84 require => Repository["${dotfiles}"]
} 85 85 }
86 86
# Vim 87 87 # Vim
Package['vim'] 88 88 Package['vim']
-> 89 89 ->
file { "${home}/.vimrc": 90 90 file { "${home}/.vimrc":
ensure => link, 91 91 ensure => link,
target => "${dotfiles}/Vim/vimrc", 92 92 target => "${dotfiles}/Vim/vimrc",
require => Repository["${dotfiles}"] 93 93 require => Repository["${dotfiles}"]
} 94 94 }
-> 95 95 ->
file { ["${home}/.vim", "${home}/.vim/bundle"]: 96 96 file { ["${home}/.vim", "${home}/.vim/bundle"]:
ensure => directory 97 97 ensure => directory
} 98 98 }
-> 99 99 ->
repository { "${home}/.vim/bundle/Vundle.vim": 100 100 repository { "${home}/.vim/bundle/Vundle.vim":
source => 'gmarik/Vundle.vim' 101 101 source => 'gmarik/Vundle.vim'
} 102 102 }
-> 103 103 ->
exec { 'vim +BundleInstall +BundleClean +qall': } 104 104 exec { 'vim +BundleInstall +BundleClean +qall': }
105 105
106 106
# Emacs mac port 107 107 # Emacs mac port
Package['emacs-mac'] 108 108 Package['emacs-mac']
-> 109 109 ->
file { "${home}/.emacs.d": 110 110 file { "${home}/.emacs.d":
ensure => directory 111 111 ensure => directory
} 112 112 }
-> 113 113 ->
file { "${home}/.emacs.d/init.el": 114 114 file { "${home}/.emacs.d/init.el":
ensure => link, 115 115 ensure => link,
target => "${dotfiles}/Emacs/init.el", 116 116 target => "${dotfiles}/Emacs/init.el",
require => Repository["${dotfiles}"] 117 117 require => Repository["${dotfiles}"]
} 118 118 }
-> 119 119 ->
repository { "${home}/.emacs.d/snippets": 120 120 repository { "${home}/.emacs.d/snippets":
source => 'hanjianwei/yasnippet-snippets' 121 121 source => 'hanjianwei/yasnippet-snippets'
} 122 122 }
123 123
# Firefox 124 124 # Firefox
Package['firefox'] 125 125 Package['firefox']
-> 126 126 ->
file { "${home}/.vimperatorrc": 127 127 file { "${home}/.vimperatorrc":
target => "${dotfiles}/Vimperator/vimperatorrc", 128 128 target => "${dotfiles}/Vimperator/vimperatorrc",
require => Repository["${dotfiles}"] 129 129 require => Repository["${dotfiles}"]
} 130 130 }
131 131
# KeyRemap4Macbook 132 132 # KeyRemap4Macbook
# include keyremap4macbook 133 133 # include keyremap4macbook
# include keyremap4macbook::login_item 134 134 # include keyremap4macbook::login_item
# keyremap4macbook::remap { 'private.f19_to_hyper': } 135 135 # keyremap4macbook::remap { 'private.f19_to_hyper': }
# keyremap4macbook::private_xml { 'private.xml': 136 136 # keyremap4macbook::private_xml { 'private.xml':
# source => "${dotfiles}/KeyRemap4MacBook/private.xml", 137 137 # source => "${dotfiles}/KeyRemap4MacBook/private.xml",
# require => Repository["${dotfiles}"] 138 138 # require => Repository["${dotfiles}"]
# } 139 139 # }
140 140
# Seil 141 141 # Seil
#include seil 142 142 #include seil
#include seil::login_item 143 143 #include seil::login_item
#seil::bind { 'keyboard bindings': 144 144 #seil::bind { 'keyboard bindings':
#mappings => { 'capslock' => 80 } 145 145 #mappings => { 'capslock' => 80 }
#} 146 146 #}
147 147
# Vagrant 148 148 # Vagrant
#include vagrant 149 149 #include vagrant
#vagrant::plugin { 'vagrant-vbguest': } 150 150 #vagrant::plugin { 'vagrant-vbguest': }
} 151 151 }
152 152