Sha256: e85628b65d5c07670ae7f523017369d4e374f90fc2185bcb7208cd83a468cc04
Contents?: true
Size: 859 Bytes
Versions: 1
Compression:
Stored size: 859 Bytes
Contents
module VagrantPlugins module GuestLinux module Cap class RSync def self.rsync_installed(machine) machine.communicate.test("which rsync") end def self.rsync_command(machine) "sudo rsync" end def self.rsync_pre(machine, opts) machine.communicate.tap do |comm| comm.sudo("mkdir -p '#{opts[:guestpath]}'") end end def self.rsync_post(machine, opts) if opts.has_key?(:chown) && !opts[:chown] return end machine.communicate.sudo( "find '#{opts[:guestpath]}' " + "'!' -type l -a " + "'(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " + "xargs -0 -r chown #{opts[:owner]}:#{opts[:group]}") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-tiktalik-0.0.3 | vendor/bundle/ruby/2.0.0/bundler/gems/vagrant-1e28f1ac31e7/plugins/guests/linux/cap/rsync.rb |