Sha256: 2cba300935949dc9d6544f140dbad377fd254bc86c563211cde2ba64a74cedfa
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
# encoding: UTF-8 module Rosette module Core module Validators # Validates the existence of an array of commits. # # @example # v = CommitsValidator.new # v.valid?(['73cd130a42017d794ffa86ef0d255541d518a7b3'], 'my_repo', config) # # => true # # v.valid?(['non-existent-ref'], 'my_repo', config) # # => false # # v.messages # => ["Unable to find commit 'non-existent-ref'."] class CommitsValidator < CommitValidator def valid?(commit_strs, repo_name, configuration) if commit_strs commit_strs.all? do |commit_str| super(commit_str, repo_name, configuration) end else false end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosette-core-1.0.1 | lib/rosette/core/validators/commits_validator.rb |