Module: DockerSync::Dependencies::Fswatch

Defined in:
lib/docker-sync/dependencies/fswatch.rb

Class Method Summary collapse

Class Method Details

.available?Boolean

Returns:

  • (Boolean)

4
5
6
7
# File 'lib/docker-sync/dependencies/fswatch.rb', line 4

def self.available?
  return @available if defined? @available
  @available = find_executable0('fswatch')
end

.ensure!Object


9
10
11
# File 'lib/docker-sync/dependencies/fswatch.rb', line 9

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