Class: HrrRbSsh::Authentication::Method::None::Context
- Inherits:
-
Object
- Object
- HrrRbSsh::Authentication::Method::None::Context
- Includes:
- Loggable
- Defined in:
- lib/hrr_rb_ssh/authentication/method/none/context.rb
Instance Attribute Summary collapse
-
#authentication_methods ⇒ Object
readonly
Returns the value of attribute authentication_methods.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
-
#vars ⇒ Object
readonly
Returns the value of attribute vars.
Attributes included from Loggable
Instance Method Summary collapse
-
#initialize(username, variables, authentication_methods, logger: nil) ⇒ Context
constructor
A new instance of Context.
- #verify(username) ⇒ Object
Methods included from Loggable
#log_debug, #log_error, #log_fatal, #log_info, #log_warn
Constructor Details
#initialize(username, variables, authentication_methods, logger: nil) ⇒ Context
Returns a new instance of Context.
19 20 21 22 23 24 25 |
# File 'lib/hrr_rb_ssh/authentication/method/none/context.rb', line 19 def initialize username, variables, authentication_methods, logger: nil self.logger = logger @username = username @variables = variables @vars = variables @authentication_methods = authentication_methods end |
Instance Attribute Details
#authentication_methods ⇒ Object (readonly)
Returns the value of attribute authentication_methods.
13 14 15 |
# File 'lib/hrr_rb_ssh/authentication/method/none/context.rb', line 13 def authentication_methods @authentication_methods end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
13 14 15 |
# File 'lib/hrr_rb_ssh/authentication/method/none/context.rb', line 13 def username @username end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
13 14 15 |
# File 'lib/hrr_rb_ssh/authentication/method/none/context.rb', line 13 def variables @variables end |
#vars ⇒ Object (readonly)
Returns the value of attribute vars.
13 14 15 |
# File 'lib/hrr_rb_ssh/authentication/method/none/context.rb', line 13 def vars @vars end |
Instance Method Details
#verify(username) ⇒ Object
27 28 29 30 31 |
# File 'lib/hrr_rb_ssh/authentication/method/none/context.rb', line 27 def verify username log_info { "verify username" } log_debug { "username is #{username}, @username is #{@username}" } username == @username end |