2014-01-11 01:40:29 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module SyncedFolderRSync
|
|
|
|
# This plugin implements synced folders via rsync.
|
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "RSync synced folders"
|
|
|
|
description <<-EOF
|
|
|
|
The Rsync synced folder plugin will sync folders via rsync.
|
|
|
|
EOF
|
|
|
|
|
2014-01-13 19:01:50 +00:00
|
|
|
command("rsync", primary: false) do
|
|
|
|
require_relative "command/rsync"
|
|
|
|
Command::Rsync
|
|
|
|
end
|
|
|
|
|
2014-01-14 05:43:31 +00:00
|
|
|
command("rsync-auto", primary: false) do
|
|
|
|
require_relative "command/rsync_auto"
|
|
|
|
Command::RsyncAuto
|
|
|
|
end
|
|
|
|
|
2014-01-11 01:40:29 +00:00
|
|
|
synced_folder("rsync", 5) do
|
|
|
|
require_relative "synced_folder"
|
|
|
|
SyncedFolder
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|