Sha256: 25850cc935aca97446746f826b57d9fdb8dc644785bddcf66d67a022377d31d1

Contents?: true

Size: 264 Bytes

Versions: 5

Compression:

Stored size: 264 Bytes

Contents

module Serverspec::Type
  class Group < Base
    def exists?
      @runner.check_group_exists(@name)
    end

    def gid
      @runner.get_group_gid(@name).stdout.to_i
    end

    def has_gid?(gid)
      @runner.check_group_has_gid(@name, gid)
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
serverspec-2.42.3 lib/serverspec/type/group.rb
serverspec-2.42.2 lib/serverspec/type/group.rb
serverspec-2.42.1 lib/serverspec/type/group.rb
serverspec-cem-acpt-2.42.0 lib/serverspec/type/group.rb
serverspec-2.42.0 lib/serverspec/type/group.rb