mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
CFINSPEC-89: Add have_gid matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
f00b3341dd
commit
2f7c65d1a4
1 changed files with 5 additions and 0 deletions
|
@ -145,6 +145,11 @@ module Inspec::Resources
|
|||
true
|
||||
end
|
||||
|
||||
# matcher equivalent to gid property.
|
||||
def has_gid?(gid_value)
|
||||
gid_value == gid
|
||||
end
|
||||
|
||||
def to_s
|
||||
"Group #{@group}"
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue