Class: Yun::SshConfig

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

Instance Method Summary collapse

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_fileObject



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

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

#userObject



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

def user
  "bitnami"
end