Sha256: 179a8a64837437020d6ceee0f06cbf66afaa8cd0c3339e84943c63f3dbb5c682

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

begin
  require "vagrant"
rescue LoadError
  raise "The Vagrant AWS plugin must be run within Vagrant."
end

# This is a sanity check to make sure no one is attempting to install
# this into an early Vagrant version.
if Vagrant::VERSION < "1.1.0"
  raise "The Vagrant AWS plugin is only compatible with Vagrant 1.1+"
end

# Add our custom translations to the load path
I18n.load_path << File.expand_path("../../../locales/en.yml", __FILE__)

module VagrantPlugins
  module Rsync
    class Plugin < Vagrant.plugin("2")
      name "rsync command"
      description <<-DESC
      THIS PLUGIN IS DEPRECATED: use a recent vagrant 1.5+ for rsync-ed folders.
      The `rsync` command allows you to sync the files in your working directories to the guest.
      DESC

      command("rsync") do
        
        require_relative 'command'
        Command
      end

      guest_capability("linux", "ensure_rsync") do
        require_relative "cap/ensure_rsync"
        Cap::EnsureRsync
      end

      guest_capability("linux", "rsync_folders") do
        require_relative "cap/rsync_folders"
        Cap::RsyncFolders
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-rsync-0.2.5 lib/vagrant-rsync/plugin.rb