Class: Nvoi::Configuration::SshKey
- Inherits:
-
Object
- Object
- Nvoi::Configuration::SshKey
- Defined in:
- lib/nvoi/configuration/ssh_key.rb
Overview
SshKey defines SSH key content (stored in encrypted config)
Instance Attribute Summary collapse
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
Instance Method Summary collapse
-
#initialize(data = nil) ⇒ SshKey
constructor
A new instance of SshKey.
Constructor Details
#initialize(data = nil) ⇒ SshKey
Returns a new instance of SshKey.
9 10 11 12 13 |
# File 'lib/nvoi/configuration/ssh_key.rb', line 9 def initialize(data = nil) data ||= {} @private_key = data["private_key"] @public_key = data["public_key"] end |
Instance Attribute Details
#private_key ⇒ Object
Returns the value of attribute private_key.
7 8 9 |
# File 'lib/nvoi/configuration/ssh_key.rb', line 7 def private_key @private_key end |
#public_key ⇒ Object
Returns the value of attribute public_key.
7 8 9 |
# File 'lib/nvoi/configuration/ssh_key.rb', line 7 def public_key @public_key end |