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
choria-mcorpc-support-2.26.4 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.26.3 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.26.2 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.26.1 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.26.0 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.25.3 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.25.2 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.25.1 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.25.0 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.24.4 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.24.3 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.24.2 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.24.1 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.24.0 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.23.3 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.23.2 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.23.1 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.23.0 lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.23.0.pre lib/mcollective/validator/regex_validator.rb
choria-mcorpc-support-2.22.1 lib/mcollective/validator/regex_validator.rb