Method: Gitlab::Triage::Engine#assert_all!
- Defined in:
- lib/gitlab/triage/engine.rb
#assert_all! ⇒ Object (private)
rubocop:disable Style/IfUnlessModifier
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/gitlab/triage/engine.rb', line 129 def assert_all! return unless .all if .source raise ArgumentError, '--all-projects option cannot be used in conjunction with --source option!' end if .source_id raise ArgumentError, '--all-projects option cannot be used in conjunction with --source-id option!' end if .resource_reference # rubocop:disable Style/GuardClause raise ArgumentError, '--all-projects option cannot be used in conjunction with --resource-reference option!' end end |