2014-01-31 03:26:43 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module GuestRedHat
|
|
|
|
module Cap
|
|
|
|
class RSync
|
|
|
|
def self.rsync_install(machine)
|
|
|
|
machine.communicate.tap do |comm|
|
2015-09-20 07:30:49 +00:00
|
|
|
if VagrantPlugins::GuestRedHat::Plugin.dnf?(machine)
|
|
|
|
comm.sudo("dnf -y install rsync")
|
|
|
|
else
|
|
|
|
comm.sudo("yum -y install rsync")
|
|
|
|
end
|
2014-01-31 03:26:43 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|