diff options
Diffstat (limited to 'lib/gitlab/cycle_analytics/summary/group/deployment_frequency.rb')
-rw-r--r-- | lib/gitlab/cycle_analytics/summary/group/deployment_frequency.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/gitlab/cycle_analytics/summary/group/deployment_frequency.rb b/lib/gitlab/cycle_analytics/summary/group/deployment_frequency.rb deleted file mode 100644 index 9fbbbb5a1ec..00000000000 --- a/lib/gitlab/cycle_analytics/summary/group/deployment_frequency.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -module Gitlab - module CycleAnalytics - module Summary - module Group - class DeploymentFrequency < Group::Base - include GroupProjectsProvider - include SummaryHelper - - def initialize(deployments:, group:, options:) - @deployments = deployments - - super(group: group, options: options) - end - - def title - _('Deployment Frequency') - end - - def value - @value ||= - frequency(@deployments, options[:from], options[:to] || Time.now) - end - - def unit - _('per day') - end - end - end - end - end -end |