Sha256: ecbf046a78218fab09e671b70133f08b343191eb7d139d0c0a79adcd0483815c

Contents?: true

Size: 765 Bytes

Versions: 5

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)
        @runner.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

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 lib/serverspec/type/user.rb
serverspec-2.0.0.beta18 lib/serverspec/type/user.rb
serverspec-2.0.0.beta17 lib/serverspec/type/user.rb
serverspec-2.0.0.beta16 lib/serverspec/type/user.rb
serverspec-2.0.0.beta15 lib/serverspec/type/user.rb