Method: Inspec::Resources::EtcGroup#initialize
- Defined in:
- lib/resources/etc_group.rb
#initialize(path = nil) ⇒ EtcGroup
Returns a new instance of EtcGroup.
43 44 45 46 47 48 49 50 |
# File 'lib/resources/etc_group.rb', line 43 def initialize(path = nil) @path = path || '/etc/group' @entries = parse_group(@path) # skip resource if it is not supported on current OS return skip_resource 'The `etc_group` resource is not supported on your OS.' \ unless inspec.os.unix? end |