Fixed problem with SSH
authorAkshay Mankar <akshaym@thoughtworks.com>
Sat, 6 Jul 2013 14:53:07 +0000 (20:23 +0530)
committerAkshay Mankar <akshaym@thoughtworks.com>
Sat, 6 Jul 2013 14:53:07 +0000 (20:23 +0530)
example/Vagrantfile
lib/copy_my_conf/ssh.rb

index 5fb1f37..74c2de0 100644 (file)
@@ -6,6 +6,7 @@ Vagrant.configure("2") do |config|
   config.vm.provision :copy_my_conf do |copy_conf|
     copy_conf.vim
     copy_conf.git
+    copy_conf.ssh
     copy_conf.user_home = "/home/vagrant"
   end
 end
index c45aba5..38e7643 100644 (file)
@@ -1,7 +1,7 @@
 module CopyMyConf
   class Ssh
     def prepare vm, tmp_root
-      vm.synced_folder("#{tmp_root}/ssh", "~/.ssh", :id => "ssh")
+      vm.synced_folder("#{ENV['HOME']}/.ssh", "#{tmp_root}/ssh",:id => "ssh")
     end
 
     def provision channel, user_home, tmp_root