summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/deployment/running.rb
blob: 3a95710c740f4b04f74963a82d9c9188e76bbd22 (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 %{environment_path}."
          end

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