Method: Inspec::Resources::SshConfig#initialize

Defined in:
lib/inspec/resources/ssh_config.rb

#initialize(conf_path = nil, type = nil) ⇒ SshConfig

Returns a new instance of SshConfig.



21
22
23
24
25
26
# File 'lib/inspec/resources/ssh_config.rb', line 21

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