Class: DInstaller::DBus::Users

Inherits:
BaseObject
  • Object
show all
Includes:
Interfaces::ServiceStatus, WithServiceStatus
Defined in:
lib/dinstaller/dbus/users.rb

Overview

YaST D-Bus object (/org/opensuse/DInstaller/Users1)

Constant Summary

Constants included from Interfaces::ServiceStatus

Interfaces::ServiceStatus::SERVICE_STATUS_BUSY, Interfaces::ServiceStatus::SERVICE_STATUS_IDLE, Interfaces::ServiceStatus::SERVICE_STATUS_INTERFACE

Instance Method Summary collapse

Methods included from Interfaces::ServiceStatus

included, #register_service_status_callbacks, #service_status_all, #service_status_current

Methods included from WithServiceStatus

#busy_while, #service_status

Methods inherited from BaseObject

#interfaces_and_properties

Constructor Details

#initialize(backend, logger) ⇒ Users

Constructor

Parameters:



42
43
44
45
46
# File 'lib/dinstaller/dbus/users.rb', line 42

def initialize(backend, logger)
  super(PATH, logger: logger)
  @backend = backend
  register_service_status_callbacks
end

Instance Method Details

#first_userObject



118
119
120
# File 'lib/dinstaller/dbus/users.rb', line 118

def first_user
  backend.first_user
end

#root_password_setObject



122
123
124
# File 'lib/dinstaller/dbus/users.rb', line 122

def root_password_set
  backend.root_password?
end

#root_ssh_keyObject

rubocop:enable Metrics/BlockLength



114
115
116
# File 'lib/dinstaller/dbus/users.rb', line 114

def root_ssh_key
  backend.root_ssh_key
end