Class: HrrRbSsh::Authentication::Method::None::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/hrr_rb_ssh/authentication/method/none/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username) ⇒ Context

Returns a new instance of Context.



13
14
15
16
17
# File 'lib/hrr_rb_ssh/authentication/method/none/context.rb', line 13

def initialize username
  @username = username

  @logger = Logger.new self.class.name
end

Instance Attribute Details

#usernameObject (readonly)

Returns the value of attribute username.



11
12
13
# File 'lib/hrr_rb_ssh/authentication/method/none/context.rb', line 11

def username
  @username
end

Instance Method Details

#verify(username) ⇒ Object



19
20
21
22
23
# File 'lib/hrr_rb_ssh/authentication/method/none/context.rb', line 19

def verify username
  @logger.info { "verify username" }
  @logger.debug { "username is #{username}, @username is #{@username}" }
  username == @username
end