Class: Yun::SshConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/yun/model/ssh_config.rb

Instance Method Summary collapse

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_fileObject



13
14
15
# File 'lib/yun/model/ssh_config.rb', line 13

def key_file
  "~/.ssh/#{@key_name}.pem"
end

#userObject



9
10
11
# File 'lib/yun/model/ssh_config.rb', line 9

def user
  @user
end