eea3b866db747fdd102403482d85e7f23dca7f83
[vagrant-dotfiles.git] / lib / copy_my_conf / git.rb
1 module Vagrant
2 module Provisioners
3 class CopyMyConf < Base
4 class Git
5 def prepare vm, tmp_root
6 `mkdir -p #{tmp_root}/git`
7 `cp ~/.gitconfig #{tmp_root}/git/`
8 vm.share_folder("git", "#{tmp_root}/git/", "#{tmp_root}/git")
9 end
10
11 def provision channel, user_home, tmp_root
12 puts "Copying your gitconfig"
13 channel.execute("cp #{tmp_root}/git/.gitconfig #{user_home}")
14 end
15 end
16 end
17 end
18 end