Sha256: c5afe6ff294f8ffc084c31d456b2ab32fe27e764fcdd75f1b7e091b9cdd46e60
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
module VagrantPlugins module Unison module UnisonSync def execute_sync_command(machine) unison_paths = UnisonPaths.new(@env, machine) guest_path = unison_paths.guest host_path = unison_paths.host @env.ui.info "Unisoning changes from {host}::#{host_path} --> {guest VM}::#{guest_path}" # Create the guest path machine.communicate.sudo("mkdir -p '#{guest_path}'") machine.communicate.sudo("chown #{machine.config.unison.ssh_user} '#{guest_path}'") ssh_command = SshCommand.new(machine) shell_command = ShellCommand.new(machine, unison_paths, ssh_command) yield shell_command end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-unison2-1.2.4 | lib/vagrant-unison2/unison_sync.rb |
vagrant-unison2-1.2.3 | lib/vagrant-unison2/unison_sync.rb |
vagrant-unison2-1.2.2 | lib/vagrant-unison2/unison_sync.rb |