Module: DockerSync::Dependencies::Rsync

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

Class Method Summary collapse

Class Method Details

.available?Boolean

Returns:

  • (Boolean)


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

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

.ensure!Object



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

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