Class: Gitlab::Ci::Config::Entry::Policy
- Inherits:
-
Gitlab::Config::Entry::Simplifiable
- Object
- SimpleDelegator
- Gitlab::Config::Entry::Simplifiable
- Gitlab::Ci::Config::Entry::Policy
- Defined in:
- lib/gitlab/ci/config/entry/policy.rb
Overview
Entry that represents an only/except trigger policy for the job.
Defined Under Namespace
Classes: ComplexPolicy, RefsPolicy, UnknownStrategy
Constant Summary collapse
- DEFAULT_ONLY =
{ refs: %w[branches tags] }.freeze
Instance Attribute Summary
Attributes inherited from Gitlab::Config::Entry::Simplifiable
Instance Method Summary collapse
Methods inherited from Gitlab::Config::Entry::Simplifiable
default, entry_class, #initialize, strategies, strategy
Constructor Details
This class inherits a constructor from Gitlab::Config::Entry::Simplifiable
Instance Method Details
#value ⇒ Object
69 70 71 |
# File 'lib/gitlab/ci/config/entry/policy.rb', line 69 def value default.to_h.deep_merge(subject.value.to_h) end |