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 options.all

  if options.source
    raise ArgumentError, '--all-projects option cannot be used in conjunction with --source option!'
  end

  if options.source_id
    raise ArgumentError, '--all-projects option cannot be used in conjunction with --source-id option!'
  end

  if options.resource_reference # rubocop:disable Style/GuardClause
    raise ArgumentError, '--all-projects option cannot be used in conjunction with --resource-reference option!'
  end
end