2023-08-10 16:53:25 -04:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2014-01-10 20:40:29 -05: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 14:01:50 -05:00
|
|
|
command("rsync", primary: false) do
|
|
|
|
|
require_relative "command/rsync"
|
|
|
|
|
Command::Rsync
|
|
|
|
|
end
|
|
|
|
|
|
2014-01-14 00:43:31 -05:00
|
|
|
command("rsync-auto", primary: false) do
|
|
|
|
|
require_relative "command/rsync_auto"
|
|
|
|
|
Command::RsyncAuto
|
|
|
|
|
end
|
|
|
|
|
|
2014-01-10 20:40:29 -05:00
|
|
|
synced_folder("rsync", 5) do
|
|
|
|
|
require_relative "synced_folder"
|
|
|
|
|
SyncedFolder
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|