Sha256: acedcd35b19c3f49d38ab898e5ced054ccb6af5ab9e93b0f16aa5b5cd494cfe5

Contents?: true

Size: 223 Bytes

Versions: 69

Compression:

Stored size: 223 Bytes

Contents

module MCollective
  module Validator
    class RegexValidator
      def self.validate(validator, regex)
        raise ValidatorError, "value should match #{regex}" unless validator.match(regex)
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 3 rubygems

Version Path
dtk-node-agent-0.7.4.1 mcollective_additions/plugins/v2.2/validator/regex_validator.rb
dtk-node-agent-0.7.4 mcollective_additions/plugins/v2.2/validator/regex_validator.rb
mcollective-client-2.8.2 lib/mcollective/validator/regex_validator.rb
dtk-node-agent-0.7.3 mcollective_additions/plugins/v2.2/validator/regex_validator.rb
dtk-node-agent-0.7.2 mcollective_additions/plugins/v2.2/validator/regex_validator.rb
dtk-node-agent-0.7.1 mcollective_additions/plugins/v2.2/validator/regex_validator.rb
mcollective-client-2.8.1 lib/mcollective/validator/regex_validator.rb
dtk-node-agent-0.7.0 mcollective_additions/plugins/v2.2/validator/regex_validator.rb
mcollective-client-2.8.0 lib/mcollective/validator/regex_validator.rb