]> review.fuel-infra Code Review - packages/precise/mcollective.git/blob - mcollective-2.3.3/plugins/mcollective/validator/array_validator.rb
ed119f8e54d1fd7c4afd49795e2ed87b8ede619f
[packages/precise/mcollective.git] / mcollective-2.3.3 / plugins / mcollective / validator / array_validator.rb
1 module MCollective
2   module Validator
3     class ArrayValidator
4       def self.validate(validator, array)
5         raise ValidatorError, "value should be one of %s" % [ array.join(", ") ] unless array.include?(validator)
6       end
7     end
8   end
9 end