Welcome to mirror list, hosted at ThFree Co, Russian Federation.

deploy.rb « summary « cycle_analytics « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 099d798aac691f1e6f1ae2de88ef2fd122d80570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Gitlab
  module CycleAnalytics
    module Summary
      class Deploy < Base
        def title
          n_('Deploy', 'Deploys', value)
        end

        def value
          @value ||= @project.deployments.where("created_at > ?", @from).count
        end
      end
    end
  end
end