Method: SshConf#initialize
- Defined in:
- lib/resources/ssh_conf.rb
#initialize(conf_path = nil, type = nil) ⇒ SshConf
Returns a new instance of SshConf.
18 19 20 21 22 |
# File 'lib/resources/ssh_conf.rb', line 18 def initialize(conf_path = nil, type = nil) @conf_path = conf_path || '/etc/ssh/ssh_config' typename = (@conf_path.include?('sshd') ? 'Server' : 'Client') @type = type || "SSH #{typename} configuration #{conf_path}" end |