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

Version Path
vagrant-unison-morroni-0.0.25 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-morroni-0.0.24 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-morroni-0.0.23 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-morroni-0.0.22 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-morroni-0.0.21 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-morroni-0.0.20 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-morroni-0.0.19 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-morroni-0.0.18 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-morroni-0.0.17 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-morroni-0.0.16 lib/vagrant-unison-morroni/unison_paths.rb
vagrant-unison-latest-0.0.16 lib/vagrant-unison/unison_paths.rb