Sha256: 6c4e510ad2670874afdaacc1025d2d355e44725a13d53497c845aa31bac2e733
Contents?: true
Size: 560 Bytes
Versions: 11
Compression:
Stored size: 560 Bytes
Contents
module VagrantPlugins module Unison class UnisonPaths def initialize(env, machine) @env = env @machine = machine end def guest @machine.config.sync.guest_folder end def host @host ||= begin path = File.expand_path(@machine.config.sync.host_folder, @env.root_path) # Make sure there is a trailing slash on the host path to # avoid creating an additional directory with rsync path = "#{path}/" if path !~ /\/$/ end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems