3 class CopyMyConf
< Base
5 def prepare vm
, tmp_root
6 `mkdir -p #{tmp_root}/vim`
7 ["~/.vimrc", "~/.vim"].each
do |file
|
8 `cp -r #{file} #{tmp_root}/vim`
10 vm
.share_folder("vim", "#{tmp_root}/vim", "#{tmp_root}/vim")
13 def provision channel
, user_home
, tmp_root
14 puts
"Copying your vim configuratios"
15 channel
.execute("rm -rf #{user_home}/.vim*")
16 channel
.execute("cp -r #{tmp_root}/vim/.??* ~/")