mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Add to_s to remaining resources
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
80db6b52c7
commit
23ca9ba64d
6 changed files with 24 additions and 0 deletions
|
@ -48,6 +48,10 @@ module Inspec::Resources
|
|||
|
||||
filter.install_filter_methods_on_resource(self, :params)
|
||||
|
||||
def to_s
|
||||
"AIDE Config"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def read_content
|
||||
|
|
|
@ -57,6 +57,10 @@ module Inspec::Resources
|
|||
where { mount_point == "/home" }.entries[0].mount_options
|
||||
end
|
||||
|
||||
def to_s
|
||||
"File System Table File (fstab)"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def read_content
|
||||
|
|
|
@ -37,6 +37,10 @@ module Inspec::Resources
|
|||
.register_column(:all_host_names, field: "all_host_names")
|
||||
.install_filter_methods_on_resource(self, :params)
|
||||
|
||||
def to_s
|
||||
"Hosts File"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def default_hosts_file_path
|
||||
|
|
|
@ -88,6 +88,10 @@ module Inspec::Resources
|
|||
firewalld_command("--zone=#{query_zone} --query-rich-rule='#{rule}'") == "yes"
|
||||
end
|
||||
|
||||
def to_s
|
||||
"Firewall Rules"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def active_zones
|
||||
|
|
|
@ -22,6 +22,10 @@ module Inspec::Resources
|
|||
SimpleConfig.new(content).params
|
||||
end
|
||||
|
||||
def to_s
|
||||
"Postfix Mail Transfer Agent"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def resource_base_name
|
||||
|
|
|
@ -47,6 +47,10 @@ module Inspec::Resources
|
|||
@sids.key?(@name)
|
||||
end
|
||||
|
||||
def to_s
|
||||
"Security Identifier"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def fetch_sids
|
||||
|
|
Loading…
Add table
Reference in a new issue