class Tagfish::Update::URIFilters

Public Class Methods

must_be_tagged() click to toggle source
# File lib/tagfish/update/uri_filters.rb, line 4
def self.must_be_tagged
  lambda do |uri| uri.tag? end
end
must_match_repository(pattern) click to toggle source
# File lib/tagfish/update/uri_filters.rb, line 12
def self.must_match_repository(pattern)
  starts_with_pattern = "#{pattern}*"
  lambda do |uri| 
    File.fnmatch(starts_with_pattern, uri.with_tag(nil).to_s)
  end
end
must_not_be_tagged_latest() click to toggle source
# File lib/tagfish/update/uri_filters.rb, line 8
def self.must_not_be_tagged_latest
  lambda do |uri| not uri.tagged_latest? end
end