Sha256: 601be8179076a5091b3f6e2d24ee1db6cfa7d900e62ae9314855941f4f29a311

Contents?: true

Size: 247 Bytes

Versions: 44

Compression:

Stored size: 247 Bytes

Contents

module MCollective
  module Validator
    class ArrayValidator
      def self.validate(validator, array)
        raise ValidatorError, "value should be one of %s" % [ array.join(", ") ] unless array.include?(validator)
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
dtk-node-agent-0.7.1 mcollective_additions/plugins/v2.2/validator/array_validator.rb
mcollective-client-2.8.1 lib/mcollective/validator/array_validator.rb
dtk-node-agent-0.7.0 mcollective_additions/plugins/v2.2/validator/array_validator.rb
mcollective-client-2.8.0 lib/mcollective/validator/array_validator.rb