Class: Serverspec::Type::Group

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/group.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/serverspec/type/group.rb', line 4

def exists?
  backend.check_group(@name)
end

#has_gid?(gid) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/serverspec/type/group.rb', line 8

def has_gid?(gid)
  backend.check_gid(@name, gid)
end