Sha256: 183cafbbc4769de6d309f5cab60e36097db203837b88c598e20dae953e575fd4

Contents?: true

Size: 331 Bytes

Versions: 16

Compression:

Stored size: 331 Bytes

Contents

module DockerSync
  module Dependencies
    module Unison
      def self.available?
        return @available if defined? @available
        @available = find_executable0('unison')
      end

      def self.ensure!
        PackageManager.install_package('unison') unless available?
        Unox.ensure!
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
docker-sync-0.5.10 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.10.pre.beta1 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.9 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.8 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.7 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.6 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.5 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.4 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.3 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.2 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.1 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.0 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.0.pre.rc1 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.0.pre.beta3 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.0.pre.beta2 lib/docker-sync/dependencies/unison.rb
docker-sync-0.5.0.pre.beta1 lib/docker-sync/dependencies/unison.rb