Add new `rsync_installed` and `rsync_install` guest capabilities to detect and install `rsync`. Also copy `rsync_pre` capability to all Unix guests.
14 lines
260 B
Ruby
14 lines
260 B
Ruby
module VagrantPlugins
|
|
module GuestRedHat
|
|
module Cap
|
|
class RSync
|
|
def self.rsync_install(machine)
|
|
machine.communicate.tap do |comm|
|
|
comm.sudo("yum -y install rsync")
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|