Skip to content

Commit

Permalink
Fixed rubocop complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Mar 13, 2024
1 parent 87e7774 commit 25be7dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/y2network/connection_config/wireless.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ class Wireless < Base
attr_accessor :nwid
# @return [Symbol] Authorization mode (:open, :shared, :psk, :eap)
attr_accessor :auth_mode

# FIXME: Consider moving keys to different classes.
# @return [String] WPA preshared key
secret_attr :wpa_psk
# @return [Integer]
attr_accessor :key_length

# @return [Array<String>] WEP keys
secret_attr :keys
# @return [Integer] default WEP key
Expand All @@ -65,6 +67,7 @@ class Wireless < Base
# FIXME: Consider an enum
# @return [Integer] (0, 1, 2)
attr_accessor :ap_scanmode

# TODO: unify psk and password and write correct one depending on mode
# @return [String]
secret_attr :wpa_password
Expand All @@ -78,6 +81,7 @@ class Wireless < Base
attr_accessor :client_cert
# @return [String] client private key used to encrypt for TLS
attr_accessor :client_key

# @return [String] client private key password
secret_attr :client_key_password

Expand Down

0 comments on commit 25be7dc

Please sign in to comment.