summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/deployment/failed.rb
blob: 7218a961c7304e8a3910b88389bfdd16cc882186 (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 Failed < Status::Extended
          def environment_text
            "The deployment of this job to %{environmentLink} did not succeed."
          end

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