Sha256: 29011fba860791a9b06cdae8ff8a249c586b60359e5aed1a51a1005caada8a54

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

module DockerSync
  module Dependencies
    module Fswatch
      def self.available?
        raise 'Fswatch cannot be available for other platforms then MacOS' unless Environment.mac?
        return @available if defined? @available
        @available = find_executable0('fswatch')
      end

      def self.ensure!
        raise 'Fswatch cannot be installed on other platforms then MacOS' unless Environment.mac?
        PackageManager.install_package('fswatch') unless available?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
docker-sync-0.5.11.pre.beta1 lib/docker-sync/dependencies/fswatch.rb