Sha256: 792c471c98cc52c98e0337e089440554184104862a4a526b638bf12a1911db2e

Contents?: true

Size: 590 Bytes

Versions: 118

Compression:

Stored size: 590 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 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

118 entries across 118 versions & 1 rubygems

Version Path
serverspec-1.10.0 lib/serverspec/type/user.rb
serverspec-1.9.1 lib/serverspec/type/user.rb
serverspec-1.9.0 lib/serverspec/type/user.rb
serverspec-1.8.0 lib/serverspec/type/user.rb
serverspec-1.7.1 lib/serverspec/type/user.rb
serverspec-1.7.0 lib/serverspec/type/user.rb
serverspec-1.6.0 lib/serverspec/type/user.rb
serverspec-1.5.0 lib/serverspec/type/user.rb
serverspec-2.0.0.beta2 lib/serverspec/type/user.rb
serverspec-1.4.2 lib/serverspec/type/user.rb
serverspec-2.0.0.beta1 lib/serverspec/type/user.rb
serverspec-1.4.1 lib/serverspec/type/user.rb
serverspec-1.4.0 lib/serverspec/type/user.rb
serverspec-1.3.0 lib/serverspec/type/user.rb
serverspec-1.2.0 lib/serverspec/type/user.rb
serverspec-1.1.0 lib/serverspec/type/user.rb
serverspec-1.0.0 lib/serverspec/type/user.rb
serverspec-0.16.0 lib/serverspec/type/user.rb
serverspec-0.15.5 lib/serverspec/type/user.rb
serverspec-0.15.4 lib/serverspec/type/user.rb