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.
132 133 134 135 |
# File 'lib/inspec/resources/etc_group.rb', line 132 def initialize(parent, filter) @parent = parent @filter = filter end |
Instance Method Details
#entries ⇒ Object
returns the group object
138 139 140 |
# File 'lib/inspec/resources/etc_group.rb', line 138 def entries @filter end |
#gids ⇒ Object
only return gids
148 149 150 |
# File 'lib/inspec/resources/etc_group.rb', line 148 def gids @parent.gids(@filter) end |
#groups ⇒ Object
only returns group name
143 144 145 |
# File 'lib/inspec/resources/etc_group.rb', line 143 def groups @parent.groups(@filter) end |
#users ⇒ Object
only returns users
153 154 155 |
# File 'lib/inspec/resources/etc_group.rb', line 153 def users @parent.users(@filter) end |