Sha256: 4f153834658dbe3bfd0499ceef6713545f83d6bd8b0d55d7a49d65ba54de4df6

Contents?: true

Size: 620 Bytes

Versions: 15

Compression:

Stored size: 620 Bytes

Contents

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

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

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

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

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
serverspec-0.5.3 lib/serverspec/type/user.rb
serverspec-0.5.2 lib/serverspec/type/user.rb
serverspec-0.5.1 lib/serverspec/type/user.rb
serverspec-0.5.0 lib/serverspec/type/user.rb
serverspec-0.4.14 lib/serverspec/type/user.rb
serverspec-0.4.13 lib/serverspec/type/user.rb
serverspec-0.4.12 lib/serverspec/type/user.rb
serverspec-0.4.11 lib/serverspec/type/user.rb
serverspec-0.4.10 lib/serverspec/type/user.rb
serverspec-0.4.9 lib/serverspec/type/user.rb
serverspec-0.4.8 lib/serverspec/type/user.rb
serverspec-0.4.7 lib/serverspec/type/user.rb
serverspec-0.4.6 lib/serverspec/type/user.rb
serverspec-0.4.5 lib/serverspec/type/user.rb
serverspec-0.4.4 lib/serverspec/type/user.rb