Class: Inspec::Resources::EtcGroupView
- Inherits:
-
Object
- Object
- Inspec::Resources::EtcGroupView
- Defined in:
- lib/inspec/resources/etc_group.rb
Overview
object that hold a specifc view on etc group
Instance Method Summary collapse
-
#entries ⇒ Object
returns the group object.
-
#gids ⇒ Object
only return gids.
-
#groups ⇒ Object
only returns group name.
-
#initialize(parent, filter) ⇒ EtcGroupView
constructor
A new instance of EtcGroupView.
-
#users ⇒ Object
only returns users.
Constructor Details
#initialize(parent, filter) ⇒ EtcGroupView
Returns a new instance of EtcGroupView.
136 137 138 139 |
# File 'lib/inspec/resources/etc_group.rb', line 136 def initialize(parent, filter) @parent = parent @filter = filter end |
Instance Method Details
#entries ⇒ Object
returns the group object
142 143 144 |
# File 'lib/inspec/resources/etc_group.rb', line 142 def entries @filter end |
#gids ⇒ Object
only return gids
152 153 154 |
# File 'lib/inspec/resources/etc_group.rb', line 152 def gids @parent.gids(@filter) end |
#groups ⇒ Object
only returns group name
147 148 149 |
# File 'lib/inspec/resources/etc_group.rb', line 147 def groups @parent.groups(@filter) end |
#users ⇒ Object
only returns users
157 158 159 |
# File 'lib/inspec/resources/etc_group.rb', line 157 def users @parent.users(@filter) end |