Sha256: b0f0c6b97f1f83b377b3b6789ae3f0ec9cfea30590bf5e48ba82064b7c989654

Contents?: true

Size: 765 Bytes

Versions: 2

Compression:

Stored size: 765 Bytes

Contents

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

      def belongs_to_group?(group)
        @runner.check_user_belongs_to_group(@name, group)
      end

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

      def has_uid?(uid)
        @runner.check_user_has_uid(@name, uid)
      end

      def has_home_directory?(path)
        @runner.check_user_has_home_directory(@name, path)
      end

      def has_login_shell?(shell)
        @runner.check_user_has_login_shell(@name, shell)
      end

      def has_authorized_key?(key)
        @runner.check_user_has_authorized_key(@name, key)
      end
    end
  end
end






Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta14 lib/serverspec/type/user.rb
serverspec-2.0.0.beta13 lib/serverspec/type/user.rb