Code Review
/
packages
/
precise
/
mcollective.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Update version according to OSCI-856
[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