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

Version Path
vagrant-vaimo-unison-0.0.1 lib/vagrant-vaimo-unison/unison_paths.rb
vagrant-unison-vaimo-4.0.0a lib/vagrant-unison-vaimo/unison_paths.rb
vagrant-unison-vaimo-1.0.0a lib/vagrant-unison-vaimo/unison_paths.rb
vagrant-unison2-2.0.0 lib/vagrant-unison2/unison_paths.rb
vagrant-unison2-1.2.4 lib/vagrant-unison2/unison_paths.rb
vagrant-unison2-1.2.3 lib/vagrant-unison2/unison_paths.rb
vagrant-unison2-1.2.2 lib/vagrant-unison2/unison_paths.rb
vagrant-unison2-1.2.0 lib/vagrant-unison2/unison_paths.rb
vagrant-unison2-1.1.0 lib/vagrant-unison2/unison_paths.rb
vagrant-unison2-1.0.3 lib/vagrant-unison2/unison_paths.rb
vagrant-unison2-1.0.2 lib/vagrant-unison2/unison_paths.rb
vagrant-unison2-1.0.1 lib/vagrant-unison2/unison_paths.rb
vagrant-unison2-1.0.0 lib/vagrant-unison/unison_paths.rb