# File lib/specinfra/command/openbsd/base/file.rb, line 20 def check_is_owned_by(file, owner) regexp = "^#{owner}$" "stat -f %Su #{escape(file)} | grep -- #{escape(regexp)}" end