Sha256: 88f645216d8af4c133574fd151147b614c8d48711939179690ae5d768455225a

Contents?: true

Size: 590 Bytes

Versions: 6

Compression:

Stored size: 590 Bytes

Contents

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

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

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

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta8 lib/serverspec/type/user.rb
serverspec-2.0.0.beta7 lib/serverspec/type/user.rb
serverspec-2.0.0.beta6 lib/serverspec/type/user.rb
serverspec-2.0.0.beta5 lib/serverspec/type/user.rb
serverspec-2.0.0.beta4 lib/serverspec/type/user.rb
serverspec-2.0.0.beta3 lib/serverspec/type/user.rb