lib/dotfileleader/rsync.rb
def is_rsync_installed()
  rsync_installed = Mixlib::ShellOut.new("/usr/bin/env which rsync")
  rsync_installed.run_command
  if rsync_installed.exitstatus == 1
    puts "You need to install rsync to use dotfileleader"
    exit(1)
  end
end
# Detects if rsync is present and exits with an error
# if it is not
Detects if rsync is present and exits with an error
if it is not
Detects if rsync is present and exits with an error if it is not
def is_rsync_installed()
  rsync_installed = Mixlib::ShellOut.new("/usr/bin/env which rsync")
  rsync_installed.run_command
  if rsync_installed.exitstatus == 1
    puts "You need to install rsync to use dotfileleader"
    exit(1)
  end
end
def is_rsync_installed ( ) rsync_installed = Mixlib :: ShellOut . new ( "/usr/bin/env which rsync" ) rsync_installed . run_command if rsync_installed . exitstatus == 1 puts "You need to install rsync to use dotfileleader" exit ( 1 ) end end
Detects if rsync is present and exits with an error
if it is not
Detects if rsync is present and exits with an error if it is not