Sha256: d2b12f7a3c476062f556cbc169205eed4b24ec145dc843f58164455cb832660b
Contents?: true
Size: 564 Bytes
Versions: 13
Compression:
Stored size: 564 Bytes
Contents
module VagrantPlugins module Unison class UnisonPaths def initialize(env, machine) @env = env @machine = machine end def guest @machine.config.unison.guest_folder end def host @host ||= begin path = File.expand_path(@machine.config.unison.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
13 entries across 13 versions & 3 rubygems