lib/d3/admin/validate.rb in depot3-3.0.9 vs lib/d3/admin/validate.rb in depot3-3.0.11
- old
+ new
@@ -395,9 +395,21 @@
###
def validate_expiration (exp)
D3::Package::Validate.validate_expiration exp
end
+ ### Confirm the validity of one or more expiration paths.
+ ### Any string that starts with a / is valid.
+ ### The strings "n" or "none" returns an empty array.
+ ###
+ ### @param paths[Pathname, String, Array<String,Pathname>] the path(s) to check
+ ###
+ ### @return [Array<Pathname>] the valid path
+ ###
+ def validate_expiration_paths (paths)
+ D3::Package::Validate.validate_expiration_paths paths
+ end
+
### Confirm the validity of an expiration path.
### any string that starts with a / is valid.
###
### @param path[Pathname, String] the path to check
###