Class: CopyMyConf::Git
- Inherits:
-
Object
- Object
- CopyMyConf::Git
- Defined in:
- lib/copy_my_conf/git.rb
Instance Method Summary collapse
Instance Method Details
#prepare(vm, tmp_root) ⇒ Object
3 4 5 6 7 |
# File 'lib/copy_my_conf/git.rb', line 3 def prepare vm, tmp_root `mkdir -p #{tmp_root}/git` `cp ~/.gitconfig #{tmp_root}/git/` vm.synced_folder("#{tmp_root}/git/", "#{tmp_root}/git", :id => "git") end |
#provision(channel, user_home, tmp_root) ⇒ Object
9 10 11 12 |
# File 'lib/copy_my_conf/git.rb', line 9 def provision channel, user_home, tmp_root puts "Copying your gitconfig" channel.execute("cp #{tmp_root}/git/.gitconfig #{user_home}") end |