Class: Gitlab::Ci::Limit
- Inherits:
-
Object
show all
- Defined in:
- lib/gitlab/ci/limit.rb
Overview
Abstract base class for CI/CD Quotas
Constant Summary
collapse
- LimitExceededError =
Class.new(StandardError)
Instance Method Summary
collapse
Constructor Details
#initialize(_context, _resource) ⇒ Limit
Returns a new instance of Limit.
11
12
|
# File 'lib/gitlab/ci/limit.rb', line 11
def initialize(_context, _resource)
end
|
Instance Method Details
#enabled? ⇒ Boolean
14
15
16
|
# File 'lib/gitlab/ci/limit.rb', line 14
def enabled?
raise NotImplementedError
end
|
#exceeded? ⇒ Boolean
18
19
20
|
# File 'lib/gitlab/ci/limit.rb', line 18
def exceeded?
raise NotImplementedError
end
|
#log_error!(extra_context = {}) ⇒ Object
#message ⇒ Object
22
23
24
|
# File 'lib/gitlab/ci/limit.rb', line 22
def message
raise NotImplementedError
end
|