diff options
author | Nick Thomas <nick@gitlab.com> | 2019-05-07 15:37:25 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-05-07 15:37:25 +0300 |
commit | fb688545e51d87d3b145b0c7fa9adc8c6b2139b2 (patch) | |
tree | bfab4f0c532ec431c8a4ba8fce13bb11a415f862 /app/models | |
parent | f2aa884bfacf211354f61768a053590d18f0756c (diff) | |
parent | 875338487343b092f670ab5e0323904ec5457a3a (diff) |
Merge branch 'show-disabled-mirrors' into 'master'
CE Show disabled project repo mirrors
See merge request gitlab-org/gitlab-ce!27326
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/remote_mirror.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/remote_mirror.rb b/app/models/remote_mirror.rb index cbfc1a7c1b2..af705b29f7a 100644 --- a/app/models/remote_mirror.rb +++ b/app/models/remote_mirror.rb @@ -133,6 +133,10 @@ class RemoteMirror < ApplicationRecord end alias_method :enabled?, :enabled + def disabled? + !enabled? + end + def updated_since?(timestamp) last_update_started_at && last_update_started_at > timestamp && !update_failed? end |