Class: Yun::SshConfig
- Inherits:
-
Object
- Object
- Yun::SshConfig
- Defined in:
- lib/yun/model/ssh_config.rb
Instance Method Summary collapse
-
#initialize(user, key_name) ⇒ SshConfig
constructor
A new instance of SshConfig.
- #key_file ⇒ Object
- #user ⇒ Object
Constructor Details
#initialize(user, key_name) ⇒ SshConfig
Returns a new instance of SshConfig.
4 5 6 7 |
# File 'lib/yun/model/ssh_config.rb', line 4 def initialize user, key_name @user = user @key_name = key_name end |
Instance Method Details
#key_file ⇒ Object
13 14 15 |
# File 'lib/yun/model/ssh_config.rb', line 13 def key_file "~/.ssh/#{@key_name}.pem" end |
#user ⇒ Object
9 10 11 |
# File 'lib/yun/model/ssh_config.rb', line 9 def user @user end |