Change source structure according to OSCI-991
[packages/precise/mcollective.git] / mcollective-2.3.3 / 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