summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/deployment/running.rb
blob: 1b9368c1b620a1a9e42b12368b1f6ace4fbb8e1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Gitlab
  module Ci
    module Status
      module Deployment
        class Running < Status::Extended
          def environment_text
            "This job is deploying to %{environmentLink}."
          end

          def self.matches?(deployment, user)
            deployment.running?
          end
        end
      end
    end
  end
end