Module: DockerSync::Dependencies::Unison

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

Class Method Summary collapse

Class Method Details

.available?Boolean

Returns:

  • (Boolean)

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

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

.ensure!Object


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

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