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