Class: Vagrant::Solaris10::Cap::RSync

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-solaris10/cap/rsync.rb

Class Method Summary collapse

Class Method Details

.rsync_post(machine, opts) ⇒ Object



6
7
8
9
10
# File 'lib/vagrant-solaris10/cap/rsync.rb', line 6

def self.rsync_post(machine, opts)
  machine.communicate.sudo(
    "find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -o ! -group #{opts[:group]} ')' " +
    " -exec chown #{opts[:owner]}:#{opts[:group]} {} +")
end