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
# File 'lib/docker-sync/dependencies/unison.rb', line 4

def self.available?
  find_executable0('unison')
end

.ensure!Object



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

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