Sha256: 0f68ba3e87bdffd21e36ae17536cd741d5b24dd5cb4a8220b52123abfda0513f

Contents?: true

Size: 704 Bytes

Versions: 6

Compression:

Stored size: 704 Bytes

Contents

module Serverspec
  module Type
    class User < Base
      def exists?
        backend.check_user(@name)
      end

      def belongs_to_group?(group)
        backend.check_belonging_group(@name, group)
      end

      def belongs_to_primary_group?(group)
        backend.check_belonging_primary_group(@name, group)
      end

      def has_uid?(uid)
        backend.check_uid(@name, uid)
      end

      def has_home_directory?(path)
        backend.check_home_directory(@name, path)
      end

      def has_login_shell?(shell)
        backend.check_login_shell(@name, shell)
      end

      def has_authorized_key?(key)
        backend.check_authorized_key(@name, key)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-1.16.0 lib/serverspec/type/user.rb
serverspec-1.15.0 lib/serverspec/type/user.rb
serverspec-1.14.0 lib/serverspec/type/user.rb
serverspec-1.13.0 lib/serverspec/type/user.rb
serverspec-1.12.0 lib/serverspec/type/user.rb
serverspec-1.11.0 lib/serverspec/type/user.rb