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

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

.ensure!Object


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

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