Method: Inspec::Resources::SshConf#initialize
- Defined in:
- lib/resources/ssh_conf.rb
#initialize(conf_path = nil, type = nil) ⇒ SshConf
Returns a new instance of SshConf.
22 23 24 25 26 27 |
# File 'lib/resources/ssh_conf.rb', line 22 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}" read_content end |