Class: Inspec::Resources::SshdActiveConfig
- Inherits:
-
SshdConfig
- Object
- SshConfig
- SshdConfig
- Inspec::Resources::SshdActiveConfig
- Defined in:
- lib/inspec/resources/ssh_config.rb
Instance Attribute Summary collapse
-
#active_path ⇒ Object
readonly
Returns the value of attribute active_path.
Instance Method Summary collapse
-
#initialize ⇒ SshdActiveConfig
constructor
A new instance of SshdActiveConfig.
- #to_s ⇒ Object
Methods inherited from SshConfig
#content, #convert_hash, #method_missing, #params, #resource_id
Methods included from FileReader
Constructor Details
#initialize ⇒ SshdActiveConfig
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_path ⇒ Object (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_s ⇒ Object
141 142 143 |
# File 'lib/inspec/resources/ssh_config.rb', line 141 def to_s "SSHD Active Configuration (active path: #{@conf_path})" end |