You might consider making a function like:
```
def valid_path?(path)
     !! @resource.get(path)
 rescue Errors::NotFound => e
     @resource.log :error, e.message
     false
end
```
I think that would simplify the nested rescues, to look something like:
```
return valid_path?(File.join(real_path, "repodata")) || valid_path?(File.join(real_path, "PULP_MANIFEST"))
```