Class: Inspec::Resources::SshdConf

Inherits:
SshConf
  • Object
show all
Defined in:
lib/resources/ssh_conf.rb

Instance Method Summary collapse

Methods inherited from SshConf

#content, #convert_hash, #method_missing, #params

Methods included from FileReader

#read_file_content

Constructor Details

#initialize(path = nil) ⇒ SshdConf

Returns a new instance of SshdConf.



89
90
91
# File 'lib/resources/ssh_conf.rb', line 89

def initialize(path = nil)
  super(path || '/etc/ssh/sshd_config')
end

Dynamic Method Handling

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

Instance Method Details

#to_sObject



93
94
95
# File 'lib/resources/ssh_conf.rb', line 93

def to_s
  'SSHD Configuration'
end