lib/specinfra/command/freebsd.rb in specinfra-1.27.5 vs lib/specinfra/command/freebsd.rb in specinfra-2.0.0.beta1
- old
+ new
@@ -21,23 +21,9 @@
def check_mode(file, mode)
regexp = "^#{mode}$"
"stat -f%Lp #{escape(file)} | grep -- #{escape(regexp)}"
end
- def check_owner(file, owner)
- regexp = "^#{owner}$"
- "stat -f%Su #{escape(file)} | grep -- #{escape(regexp)}"
- end
-
- def check_grouped(file, group)
- regexp = "^#{group}$"
- "stat -f%Sg #{escape(file)} | grep -- #{escape(regexp)}"
- end
-
- def check_link(link, target)
- "stat -f%Y #{escape(link)} | grep -- #{escape(target)}"
- end
-
def get_mode(file)
"stat -f%Lp #{escape(file)}"
end
def install(package)