mirror of
https://github.com/inspec/inspec
synced 2024-11-14 00:47:10 +00:00
CFINSPEC-78: Add rules property for the resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
be4e6f7594
commit
2e243617a5
1 changed files with 5 additions and 1 deletions
|
@ -51,7 +51,11 @@ module Inspec::Resources
|
||||||
end
|
end
|
||||||
|
|
||||||
def rules
|
def rules
|
||||||
"some_value"
|
auditctl_cmd = inspec.command("#{auditctl_utility} -l")
|
||||||
|
|
||||||
|
raise Inspec::Exceptions::ResourceFailed, "Executing #{auditctl_utility} -l: #{auditctl_cmd.stderr}" if auditctl_cmd.exit_status.to_i != 0
|
||||||
|
|
||||||
|
auditctl_cmd.stdout.strip.split("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue