Code Review
/
packages
/
precise
/
mcollective.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3d21ec69e93c1292460824ff80d99b2e109fa043
[packages/precise/mcollective.git]
/
plugins
/
mcollective
/
validator
/
regex_validator.rb
1
module MCollective
2
module Validator
3
class RegexValidator
4
def self.validate(validator, regex)
5
raise ValidatorError, "value should match #{regex}" unless validator.match(regex)
6
end
7
end
8
end
9
end