Sha256: aaecab50a0cd13f4ede224bd5095a8f38a45cffbd127ea6f509fce5ea8488c63

Contents?: true

Size: 782 Bytes

Versions: 12

Compression:

Stored size: 782 Bytes

Contents

module VagrantPlugins
  module GuestWindows
    module Cap
      class RSync
        def self.rsync_scrub_guestpath( machine, opts )
          # Windows guests most often use cygwin-dependent rsync utilities
          # that expect "/cygdrive/c" instead of "c:" as the path prefix
          # some vagrant code may pass guest paths with drive-lettered paths here
          opts[:guestpath].gsub( /^([a-zA-Z]):/, '/cygdrive/\1' )
        end

        def self.rsync_pre(machine, opts)
          machine.communicate.tap do |comm|
            # rsync does not construct any gaps in the path to the target directory
            # make sure that all subdirectories are created
            comm.execute("mkdir '#{opts[:guestpath]}'")
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
vagrant-unbundled-1.9.5.1 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-1.9.1.1 plugins/guests/windows/cap/rsync.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/windows/cap/rsync.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/windows/cap/rsync.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/windows/cap/rsync.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-1.8.5.2 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-1.8.5.1 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-1.8.4.2 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-1.8.4.1 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-1.8.1.2 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-1.8.1.1 plugins/guests/windows/cap/rsync.rb