Module: Y2Issues
- Defined in:
- library/general/src/lib/y2issues.rb,
library/general/src/lib/y2issues/list.rb,
library/general/src/lib/y2issues/issue.rb,
library/general/src/lib/y2issues/location.rb,
library/general/src/lib/y2issues/reporter.rb,
library/general/src/lib/y2issues/presenter.rb,
library/general/src/lib/y2issues/with_issues.rb,
library/general/src/lib/y2issues/invalid_value.rb
Overview
Copyright (c) [2021] SUSE LLC
All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, contact SUSE LLC.
To contact SUSE LLC about this file by physical or electronic mail, you may find current contact information at www.suse.com.
Defined Under Namespace
Modules: WithIssues Classes: InvalidValue, Issue, List, Location, Presenter, Reporter
Class Method Summary collapse
-
.report(issues, warn: :ask, error: :abort) ⇒ Boolean
Reports the errors to the user.
Class Method Details
.report(issues, warn: :ask, error: :abort) ⇒ Boolean
Reports the errors to the user
This is a helper method that offers an stable API on top of Reporter. Depending on Yast::Report settings, it may show a pop-up with the found issues and log them.
43 44 45 |
# File 'library/general/src/lib/y2issues.rb', line 43 def self.report(issues, warn: :ask, error: :abort) Reporter.new(issues).report(warn: warn, error: error) end |