Now supporting vagrant 1.2. Simplified config class. SSH not working
[vagrant-dotfiles.git] / lib / copy_my_conf / git.rb
1 module CopyMyConf
2 class Git
3 def prepare vm, tmp_root
4 `mkdir -p #{tmp_root}/git`
5 `cp ~/.gitconfig #{tmp_root}/git/`
6 vm.synced_folder("#{tmp_root}/git/", "#{tmp_root}/git", :id => "git")
7 end
8
9 def provision channel, user_home, tmp_root
10 puts "Copying your gitconfig"
11 channel.execute("cp #{tmp_root}/git/.gitconfig #{user_home}")
12 end
13 end
14 end