Sha256: 837f6e4869eaada6750d8a30c22ac44c6a0093b006bd25ccb69650fd9be71fb6

Contents?: true

Size: 785 Bytes

Versions: 41

Compression:

Stored size: 785 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 -p '#{opts[:guestpath]}'")
          end
        end
      end
    end
  end
end

Version data entries

41 entries across 37 versions & 4 rubygems

Version Path
vagrant-unbundled-2.2.18.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.16.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.14.0 plugins/guests/windows/cap/rsync.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.10.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.9.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.8.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.7.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.6.2 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.6.1 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.6.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.5.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.4.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.3.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.2.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.2.0.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.1.4.0 plugins/guests/windows/cap/rsync.rb
vagrant-unbundled-2.1.2.0 plugins/guests/windows/cap/rsync.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/windows/cap/rsync.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/windows/cap/rsync.rb