lib/vagrant-vaimo-unison/command.rb in vagrant-vaimo-unison-2.0.2 vs lib/vagrant-vaimo-unison/command.rb in vagrant-vaimo-unison-2.2.0

- old
+ new

@@ -17,18 +17,20 @@ def self.synopsis 'sync the unison shared folder forever, by polling for changes' end def execute + parse_options! + sync_once sync_polling unless options[:no_polling] end def sync_once status = nil with_target_vms do |machine| - execute_sync_command(machine) do |command| + execute_sync_command(machine, true) do |command| command.batch = true command.terse = true command = command.to_s @env.ui.info 'Started main sync process' @@ -127,10 +129,10 @@ end def execute with_target_vms do |machine| ssh_user = machine.config.unison.ssh_user - command = "rm -rf ~/Library/'Application Support'/Unison/*" + command = "rm -rf ~/Library/'Application Support'/Unison/*" @env.ui.info "Running #{command} on host" if options[:verbose] system(command) command = "sudo -H -u #{ssh_user} sh -c 'rm -rf ~/.unison'" @env.ui.info "Running #{command} on guest VM" if options[:verbose]