Class: Inspec::Resources::SshdActiveConfig

Inherits:
SshdConfig show all
Defined in:
lib/inspec/resources/ssh_config.rb

Instance Attribute Summary collapse

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

#initializeSshdActiveConfig

Returns a new instance of SshdActiveConfig.



136
137
138
139
# File 'lib/inspec/resources/ssh_config.rb', line 136

def initialize
  @active_path = dynamic_sshd_config_path
  super(@active_path)
end

Dynamic Method Handling

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

Instance Attribute Details

#active_pathObject (readonly)

Returns the value of attribute active_path.



134
135
136
# File 'lib/inspec/resources/ssh_config.rb', line 134

def active_path
  @active_path
end

Instance Method Details

#to_sObject



141
142
143
# File 'lib/inspec/resources/ssh_config.rb', line 141

def to_s
  "SSHD Active Configuration (active path: #{@conf_path})"
end