Class: Sym::App::PrivateKey::Handler
- 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
Instance Attribute Summary collapse
-
#input_handler ⇒ Object
Returns the value of attribute input_handler.
-
#key ⇒ Object
Returns the value of attribute key.
-
#key_source ⇒ Object
Returns the value of attribute key_source.
-
#opts ⇒ Object
Returns the value of attribute opts.
-
#password_cache ⇒ Object
Returns the value of attribute password_cache.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Handler
constructor
A new instance of Handler.
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_handler ⇒ Object
Returns the value of attribute input_handler
12 13 14 |
# File 'lib/sym/app/private_key/handler.rb', line 12 def input_handler @input_handler end |
#key ⇒ Object
Returns the value of attribute key.
14 15 16 |
# File 'lib/sym/app/private_key/handler.rb', line 14 def key @key end |
#key_source ⇒ Object
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 |
#opts ⇒ Object
Returns the value of attribute opts
12 13 14 |
# File 'lib/sym/app/private_key/handler.rb', line 12 def opts @opts end |
#password_cache ⇒ Object
Returns the value of attribute password_cache
12 13 14 |
# File 'lib/sym/app/private_key/handler.rb', line 12 def password_cache @password_cache end |