def find_salt_binaries
@salt_key = which('salt-key')
unless File.exists?("#{@salt_key}")
logger.warn 'unable to find salt-key binary'
raise 'unable to find salt-key'
end
logger.debug "Found salt-key at #{@salt_key}"
@salt = which('salt')
unless File.exists?("#{@salt}")
logger.warn 'unable to find salt binary'
raise 'unable to find salt'
end
logger.debug "Found salt at #{@salt}"
@sudo = which('sudo')
unless File.exists?(@sudo)
logger.warn 'unable to find sudo binary'
raise 'Unable to find sudo'
end
logger.debug "Found sudo at #{@sudo}"
@sudo = "#{@sudo}"
end