class DBus::Systemd::Hostnamed

Constants

NODE

the hostnamed dbus node path

SERVICE

the hostnamed dbus service & interface

Attributes

service[R]

@return [DBus::Service] @api private

Public Class Methods

new(bus = Helpers.system_bus) click to toggle source

Creates a new Hostnamed object for interfacing with hostnamed on the given bus

@param bus [DBus::SystemBus, DBus::SessionBus] dbus instance

# File lib/dbus/systemd/hostnamed.rb, line 49
def initialize(bus = Helpers.system_bus)
  @service = bus.service(SERVICE)
  @object = @service.object(NODE)
  @object.default_iface = INTERFACE
  @object.introspect
end