summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/deployment/scheduled.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/status/deployment/scheduled.rb')
-rw-r--r--lib/gitlab/ci/status/deployment/scheduled.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/gitlab/ci/status/deployment/scheduled.rb b/lib/gitlab/ci/status/deployment/scheduled.rb
new file mode 100644
index 00000000000..9c718c930cb
--- /dev/null
+++ b/lib/gitlab/ci/status/deployment/scheduled.rb
@@ -0,0 +1,17 @@
+module Gitlab
+ module Ci
+ module Status
+ module Deployment
+ class Scheduled < Status::Extended
+ def environment_text
+ "This job is scheduled to deploy to %{environmentLink}."
+ end
+
+ def self.matches?(deployment, user)
+ deployment.scheduled?
+ end
+ end
+ end
+ end
+ end
+end