Method: Lono::Utils::Rsync#check_rsync_installed!

Defined in:
lib/lono/utils/rsync.rb

#check_rsync_installed!Object



27
28
29
30
31
32
33
34
# File 'lib/lono/utils/rsync.rb', line 27

def check_rsync_installed!
  return if @@rsync_installed # only check once
  if system "type rsync > /dev/null 2>&1"
    @@rsync_installed = true
  else
    raise "ERROR: Rsync is required. Rsync does not seem to be installed.".color(:red)
  end
end