Class: Serverspec::Type::Group
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::Group
show all
- Defined in:
- lib/serverspec/type/group.rb
Instance Attribute Summary
Attributes inherited from Base
#name
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #inspect, #to_ary, #to_s
Instance Method Details
#exists? ⇒ Boolean
3
4
5
|
# File 'lib/serverspec/type/group.rb', line 3
def exists?
@runner.check_group_exists(@name)
end
|
#gid ⇒ Object
7
8
9
|
# File 'lib/serverspec/type/group.rb', line 7
def gid
@runner.get_group_gid(@name).stdout.to_i
end
|
#has_gid?(gid) ⇒ Boolean
11
12
13
|
# File 'lib/serverspec/type/group.rb', line 11
def has_gid?(gid)
@runner.check_group_has_gid(@name, gid)
end
|