Class: Nvoi::Configuration::SshKey

Inherits:
Object
  • Object
show all
Defined in:
lib/nvoi/configuration/ssh_key.rb

Overview

SshKey defines SSH key content (stored in encrypted config)

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject

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_keyObject

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