Code Review
/
packages
/
precise
/
mcollective.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ed119f8e54d1fd7c4afd49795e2ed87b8ede619f
[packages/precise/mcollective.git]
/
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