Class: Inspec::Resources::SshdConfig

Inherits:
SshConfig
  • Object
show all
Defined in:
lib/inspec/resources/ssh_config.rb

Direct Known Subclasses

SshdActiveConfig

Instance Method Summary collapse

Methods inherited from SshConfig

#content, #convert_hash, #method_missing, #params, #resource_id

Methods included from FileReader

#read_file_content

Constructor Details

#initialize(path = nil) ⇒ SshdConfig

Returns a new instance of SshdConfig.



103
104
105
# File 'lib/inspec/resources/ssh_config.rb', line 103

def initialize(path = nil)
  super(path || ssh_config_file("sshd_config"))
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Inspec::Resources::SshConfig

Instance Method Details

#to_sObject



107
108
109
# File 'lib/inspec/resources/ssh_config.rb', line 107

def to_s
  "SSHD Configuration"
end