2018-09-11 19:08:34 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-11-05 12:06:20 +00:00
|
|
|
class TagsFinder < GitRefsFinder
|
2016-08-31 11:35:23 +00:00
|
|
|
def initialize(repository, params)
|
2019-11-05 12:06:20 +00:00
|
|
|
super(repository, params)
|
2016-08-31 11:35:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def execute
|
2019-11-05 12:06:20 +00:00
|
|
|
tags = repository.tags_sorted_by(sort)
|
2021-04-19 15:09:08 +00:00
|
|
|
by_search(tags)
|
2016-08-31 11:35:23 +00:00
|
|
|
end
|
|
|
|
end
|