Sha256: d3f17432df24c9322096739436b6db5b34d3c1e8b94c5a83bc0f19968da4e452

Contents?: true

Size: 656 Bytes

Versions: 3

Compression:

Stored size: 656 Bytes

Contents

require "log4r"

require_relative "helper"

module Vagrant
  module Zscp
    class SyncedFolder < Vagrant.plugin("2", :synced_folder)
      def initialize(*args)
        super
        @logger = Log4r::Logger.new("vagrant::synced_folders::zscp")
      end

      def usable?(machine, raise_error=false)
        return true
      end

      def prepare(machine, folders, opts)
        # Nothing is necessary to do before VM boot.
      end

      def enable(machine, folders, opts)
        ssh_info = machine.ssh_info

        folders.each do |id, folder_opts|
          ZscpHelper.scp(machine, ssh_info, folder_opts)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-zscp-0.1.2 lib/vagrant/zscp/synced_folder.rb
vagrant-zscp-0.1.1 lib/vagrant/zscp/synced_folder.rb
vagrant-zscp-0.1.0 lib/vagrant/zscp/synced_folder.rb