Skip to content

Commit

Permalink
[service] Improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Apr 27, 2023
1 parent 3a29e94 commit d86b948
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion service/lib/agama/dbus.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Copyright (c) [2022] SUSE LLC
# Copyright (c) [2022-2023] SUSE LLC
#
# All Rights Reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion service/lib/agama/dbus/interfaces/issues.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Copyright (c) [2022] SUSE LLC
# Copyright (c) [2023] SUSE LLC
#
# All Rights Reserved.
#
Expand Down
17 changes: 15 additions & 2 deletions service/lib/agama/issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@
# find current contact information at www.suse.com.

module Agama
# Represents an issue
# This class represents an issue in Agama
#
# An issue is used for notifying about some unexpected or problematic situation, for example, to
# indicate that there is no device for installing the system.
#
# Issues have a description, details, source and severity:
# * Description: describes the issue, typically with a single sentence.
# * Details: provides more details about the problem. It is useful to report the output of a
# command failure.
# * Source: indicates the source of the problem. In Agama, the issues usually comes from some
# unexpected situation in the system (e.g., missing device, etc) or from a wrong config (e.g.,
# missing user, etc).
# * Severity: sets the severity of the issue. For now, issues could have warn or error severity.
# Error severity indicates that the installation cannot start.
class Issue
# Description of the issue
#
Expand Down Expand Up @@ -48,7 +61,7 @@ module Source
CONFIG = :config
end

# Defines different severities
# Defines different severity levels
module Severity
WARN = :warn
ERROR = :error
Expand Down
2 changes: 1 addition & 1 deletion service/lib/agama/with_issues.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# find current contact information at www.suse.com.

module Agama
# Mixin for managing issues
# Mixin for managing issues, see {Issue}
module WithIssues
# The list of current issues
#
Expand Down

0 comments on commit d86b948

Please sign in to comment.