Sha256: 15b8e1a62ced73188ba15f4e25d4b80227908eeeb28d1e0087d9cc387c675363

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 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_is_belonging_to_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.beta10 lib/serverspec/type/user.rb
serverspec-2.0.0.beta9 lib/serverspec/type/user.rb