Class: Sym::App::PrivateKey::Handler

Inherits:
Struct
  • Object
show all
Includes:
Sym
Defined in:
lib/sym/app/private_key/handler.rb

Overview

This class figures out what is the private key that is provided to be used.

Constant Summary

Constants included from Sym

DESCRIPTION, VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Sym

config, default_key, default_key?, default_key_file

Constructor Details

#initialize(*args) ⇒ Handler

Returns a new instance of Handler.



16
17
18
19
# File 'lib/sym/app/private_key/handler.rb', line 16

def initialize(*args)
  super(*args)
  self.key, self.key_source = detect_key
end

Instance Attribute Details

#input_handlerObject

Returns the value of attribute input_handler

Returns:

  • (Object)

    the current value of input_handler



12
13
14
# File 'lib/sym/app/private_key/handler.rb', line 12

def input_handler
  @input_handler
end

#keyObject

Returns the value of attribute key.



14
15
16
# File 'lib/sym/app/private_key/handler.rb', line 14

def key
  @key
end

#key_sourceObject

Returns the value of attribute key_source.



14
15
16
# File 'lib/sym/app/private_key/handler.rb', line 14

def key_source
  @key_source
end

#optsObject

Returns the value of attribute opts

Returns:

  • (Object)

    the current value of opts



12
13
14
# File 'lib/sym/app/private_key/handler.rb', line 12

def opts
  @opts
end

#password_cacheObject

Returns the value of attribute password_cache

Returns:

  • (Object)

    the current value of password_cache



12
13
14
# File 'lib/sym/app/private_key/handler.rb', line 12

def password_cache
  @password_cache
end