Class: BuildTool::SshKey
- Inherits:
-
Object
- Object
- BuildTool::SshKey
- Defined in:
- lib/build-tool/sshkey.rb
Overview
Encapsulates a ssh key
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, file = nil) ⇒ SshKey
constructor
A new instance of SshKey.
- #to_s ⇒ Object
Constructor Details
#initialize(name, file = nil) ⇒ SshKey
Returns a new instance of SshKey.
9 10 11 12 |
# File 'lib/build-tool/sshkey.rb', line 9 def initialize(name, file = nil) @name = name @file = file end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
16 17 18 |
# File 'lib/build-tool/sshkey.rb', line 16 def file @file end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/build-tool/sshkey.rb', line 14 def name @name end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/build-tool/sshkey.rb', line 18 def to_s @file end |