Class: Gitlab::Ci::Config::Entry::Rules::Rule
- Inherits:
-
Gitlab::Config::Entry::Node
- Object
- Gitlab::Config::Entry::Node
- Gitlab::Ci::Config::Entry::Rules::Rule
- Defined in:
- lib/gitlab/ci/config/entry/rules/rule.rb
Constant Summary collapse
- CLAUSES =
%i[if changes exists].freeze
- ALLOWED_KEYS =
%i[if changes exists when start_in allow_failure].freeze
- ALLOWABLE_WHEN =
%w[on_success on_failure always never manual delayed].freeze
Constants inherited from Gitlab::Config::Entry::Node
Gitlab::Config::Entry::Node::InvalidError
Instance Attribute Summary
Attributes inherited from Gitlab::Config::Entry::Node
#config, #description, #key, #metadata, #parent
Instance Method Summary collapse
Methods included from Gitlab::Config::Entry::Validatable
#compose!, #errors, included, #validate, #validator
Methods inherited from Gitlab::Config::Entry::Node
#[], #add_warning, #ancestors, aspects, #compose!, default, #descendants, #errors, #hash?, #initialize, #inspect, #integer?, #leaf?, #location, #opt, #relevant?, #specified?, #string?, #valid?, #value, #warnings, with_aspect
Constructor Details
This class inherits a constructor from Gitlab::Config::Entry::Node
Instance Method Details
#default ⇒ Object
44 45 |
# File 'lib/gitlab/ci/config/entry/rules/rule.rb', line 44 def default end |
#specifies_delay? ⇒ Boolean
40 41 42 |
# File 'lib/gitlab/ci/config/entry/rules/rule.rb', line 40 def specifies_delay? self.when == 'delayed' end |