dbus-systemd 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dbus/systemd/hostnamed.rb +5 -4
- data/lib/dbus/systemd/importd/manager.rb +4 -3
- data/lib/dbus/systemd/importd/transfer.rb +2 -1
- data/lib/dbus/systemd/job.rb +2 -1
- data/lib/dbus/systemd/localed.rb +5 -4
- data/lib/dbus/systemd/logind/manager.rb +5 -4
- data/lib/dbus/systemd/logind/seat.rb +2 -1
- data/lib/dbus/systemd/logind/session.rb +2 -1
- data/lib/dbus/systemd/logind/user.rb +2 -1
- data/lib/dbus/systemd/machined/image.rb +2 -1
- data/lib/dbus/systemd/machined/machine.rb +2 -1
- data/lib/dbus/systemd/machined/manager.rb +5 -4
- data/lib/dbus/systemd/manager.rb +5 -4
- data/lib/dbus/systemd/networkd/link.rb +2 -1
- data/lib/dbus/systemd/networkd/manager.rb +5 -4
- data/lib/dbus/systemd/resolved/link.rb +2 -1
- data/lib/dbus/systemd/resolved/manager.rb +2 -1
- data/lib/dbus/systemd/timedated.rb +5 -4
- data/lib/dbus/systemd/unit.rb +2 -1
- data/lib/dbus/systemd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a203558244ba02474699b78f779913bd0de959c9
|
4
|
+
data.tar.gz: 3f37d182843c8a10f4060d5fa031fa8ee72cfedf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68d7905149f976a2542a7cfc5fe27032305226c9074ec39f1c0c3cf5df4ab12dc969fb515a67777a0f5b2e2499d38d056c432a2a8f4d073f0e5d5ee7567297c
|
7
|
+
data.tar.gz: f43b5bd09975437b8f8c19e9490e67f529aa4f61befa29418106486a07131961e93ab9002a2e14497e4b35f1c4ed48898b6e922dabe4a3729b2bc3a6660e344e
|
@@ -31,8 +31,8 @@ module DBus
|
|
31
31
|
# the hostnamed dbus node path
|
32
32
|
NODE = '/org/freedesktop/hostname1'.freeze
|
33
33
|
|
34
|
-
# the hostnamed dbus interface
|
35
|
-
INTERFACE = 'org.freedesktop.hostname1'.freeze
|
34
|
+
# the hostnamed dbus service & interface
|
35
|
+
SERVICE = INTERFACE = 'org.freedesktop.hostname1'.freeze
|
36
36
|
|
37
37
|
include Mixin::MethodMissing
|
38
38
|
include Mixin::Properties
|
@@ -47,9 +47,10 @@ module DBus
|
|
47
47
|
#
|
48
48
|
# @param bus [DBus::SystemBus, DBus::SessionBus] dbus instance
|
49
49
|
def initialize(bus = Helpers.system_bus)
|
50
|
-
@service = bus.service(
|
50
|
+
@service = bus.service(SERVICE)
|
51
51
|
@object = @service.object(NODE)
|
52
|
-
|
52
|
+
@object.default_iface = INTERFACE
|
53
|
+
@object.introspect
|
53
54
|
end
|
54
55
|
end
|
55
56
|
end
|
@@ -26,7 +26,7 @@ module DBus
|
|
26
26
|
module Systemd
|
27
27
|
module Importd
|
28
28
|
# the importd dbus interface
|
29
|
-
|
29
|
+
SERVICE = 'org.freedesktop.import1'.freeze
|
30
30
|
|
31
31
|
class Manager
|
32
32
|
# the importd manager dbus node path
|
@@ -58,9 +58,10 @@ module DBus
|
|
58
58
|
#
|
59
59
|
# @param bus [DBus::SystemBus, DBus::SessionBus] dbus instance
|
60
60
|
def initialize(bus = Systemd::Helpers.system_bus)
|
61
|
-
@service = bus.service(Importd::
|
61
|
+
@service = bus.service(Importd::SERVICE)
|
62
62
|
@object = @service.object(NODE)
|
63
|
-
|
63
|
+
@object.default_iface = INTERFACE
|
64
|
+
@object.introspect
|
64
65
|
end
|
65
66
|
|
66
67
|
#
|
@@ -38,7 +38,8 @@ module DBus
|
|
38
38
|
# @param manager [DBus::Systemd::Importd::Manager] the importd manager object
|
39
39
|
def initialize(id, manager = Manager.new)
|
40
40
|
@object = manager.service.object("#{Manager::NODE}/transfer/_#{id}")
|
41
|
-
|
41
|
+
@object.default_iface = INTERFACE
|
42
|
+
@object.introspect
|
42
43
|
end
|
43
44
|
end
|
44
45
|
end
|
data/lib/dbus/systemd/job.rb
CHANGED
data/lib/dbus/systemd/localed.rb
CHANGED
@@ -31,8 +31,8 @@ module DBus
|
|
31
31
|
# the localed object dbus node path
|
32
32
|
NODE = '/org/freedesktop/locale1'.freeze
|
33
33
|
|
34
|
-
# the localed object dbus interface
|
35
|
-
INTERFACE = 'org.freedesktop.locale1'.freeze
|
34
|
+
# the localed object dbus service & interface
|
35
|
+
SERVICE = INTERFACE = 'org.freedesktop.locale1'.freeze
|
36
36
|
|
37
37
|
include Mixin::MethodMissing
|
38
38
|
include Mixin::Properties
|
@@ -46,9 +46,10 @@ module DBus
|
|
46
46
|
#
|
47
47
|
# @param bus [DBus::SystemBus, DBus::SessionBus] the bus instance
|
48
48
|
def initialize(bus = Helpers.system_bus)
|
49
|
-
@service = bus.service(
|
49
|
+
@service = bus.service(SERVICE)
|
50
50
|
@object = @service.object(NODE)
|
51
|
-
|
51
|
+
@object.default_iface = INTERFACE
|
52
|
+
@object.introspect
|
52
53
|
end
|
53
54
|
end
|
54
55
|
end
|
@@ -27,8 +27,8 @@ require_relative 'seat'
|
|
27
27
|
module DBus
|
28
28
|
module Systemd
|
29
29
|
module Logind
|
30
|
-
# the logind objet dbus
|
31
|
-
|
30
|
+
# the logind objet dbus service
|
31
|
+
SERVICE = 'org.freedesktop.login1'.freeze
|
32
32
|
|
33
33
|
class Manager
|
34
34
|
# the logind manager object dbus node path
|
@@ -81,9 +81,10 @@ module DBus
|
|
81
81
|
#
|
82
82
|
# @param bus [DBus::SystemBus, DBus::SessionBus] dbus instance
|
83
83
|
def initialize(bus = Systemd::Helpers.system_bus)
|
84
|
-
@service = bus.service(Logind::
|
84
|
+
@service = bus.service(Logind::SERVICE)
|
85
85
|
@object = @service.object(NODE)
|
86
|
-
|
86
|
+
@object.default_iface = INTERFACE
|
87
|
+
@object.introspect
|
87
88
|
end
|
88
89
|
|
89
90
|
#
|
@@ -39,7 +39,8 @@ module DBus
|
|
39
39
|
def initialize(name, manager = Manager.new)
|
40
40
|
machine_path = manager.GetMachine(name).first
|
41
41
|
@object = manager.service.object(machine_path)
|
42
|
-
|
42
|
+
@object.default_iface = INTERFACE
|
43
|
+
@object.introspect
|
43
44
|
end
|
44
45
|
end
|
45
46
|
end
|
@@ -26,8 +26,8 @@ require_relative 'image'
|
|
26
26
|
module DBus
|
27
27
|
module Systemd
|
28
28
|
module Machined
|
29
|
-
# machined dbus
|
30
|
-
|
29
|
+
# machined dbus service
|
30
|
+
SERVICE = 'org.freedesktop.machine1'.freeze
|
31
31
|
|
32
32
|
class Manager
|
33
33
|
# machined manager dbus object node path
|
@@ -67,9 +67,10 @@ module DBus
|
|
67
67
|
#
|
68
68
|
# @param bus [DBus::SystemBus, DBus::SessionBus] dbus instance
|
69
69
|
def initialize(bus = Systemd::Helpers.system_bus)
|
70
|
-
@service = bus.service(Machined::
|
70
|
+
@service = bus.service(Machined::SERVICE)
|
71
71
|
@object = @service.object(NODE)
|
72
|
-
|
72
|
+
@object.default_iface = INTERFACE
|
73
|
+
@object.introspect
|
73
74
|
end
|
74
75
|
|
75
76
|
#
|
data/lib/dbus/systemd/manager.rb
CHANGED
@@ -29,8 +29,8 @@ require_relative 'job'
|
|
29
29
|
|
30
30
|
module DBus
|
31
31
|
module Systemd
|
32
|
-
# systemd dbus
|
33
|
-
|
32
|
+
# systemd dbus service
|
33
|
+
SERVICE = 'org.freedesktop.systemd1'.freeze
|
34
34
|
|
35
35
|
class Manager
|
36
36
|
# systemd manager object dbus node path
|
@@ -75,9 +75,10 @@ module DBus
|
|
75
75
|
#
|
76
76
|
# @param bus [DBus::SystemBus, DBus::SessionBus] bus instance
|
77
77
|
def initialize(bus = Systemd::Helpers.system_bus)
|
78
|
-
@service = bus.service(Systemd::
|
78
|
+
@service = bus.service(Systemd::SERVICE)
|
79
79
|
@object = @service.object(NODE)
|
80
|
-
|
80
|
+
@object.default_iface = INTERFACE
|
81
|
+
@object.introspect
|
81
82
|
end
|
82
83
|
|
83
84
|
#
|
@@ -38,7 +38,8 @@ module DBus
|
|
38
38
|
# @param manager [DBus::Systemd::Networkd::Manager] networkd manager object
|
39
39
|
def initialize(id, manager = Manager.new)
|
40
40
|
@object = manager.service.object("#{Manager::NODE}/link/#{id}")
|
41
|
-
|
41
|
+
@object.default_iface = INTERFACE
|
42
|
+
@object.introspect
|
42
43
|
end
|
43
44
|
end
|
44
45
|
end
|
@@ -25,8 +25,8 @@ require_relative 'link'
|
|
25
25
|
module DBus
|
26
26
|
module Systemd
|
27
27
|
module Networkd
|
28
|
-
# networkd dbus
|
29
|
-
|
28
|
+
# networkd dbus service
|
29
|
+
SERVICE = 'org.freedesktop.network1'.freeze
|
30
30
|
|
31
31
|
class Manager
|
32
32
|
# networkd manager object dbus node path
|
@@ -47,9 +47,10 @@ module DBus
|
|
47
47
|
#
|
48
48
|
# @param bus [DBus::SystemBus, DBus::SessionBus] dbus instance
|
49
49
|
def initialize(bus = Systemd::Helpers.system_bus)
|
50
|
-
@service = bus.service(Networkd::
|
50
|
+
@service = bus.service(Networkd::SERVICE)
|
51
51
|
@object = @service.object(NODE)
|
52
|
-
|
52
|
+
@object.default_iface = INTERFACE
|
53
|
+
@object.introspect
|
53
54
|
end
|
54
55
|
|
55
56
|
#
|
@@ -27,8 +27,8 @@ module DBus
|
|
27
27
|
# the timedated dbus node path
|
28
28
|
NODE = '/org/freedesktop/timedate1'.freeze
|
29
29
|
|
30
|
-
# the timedated dbus interface
|
31
|
-
INTERFACE = 'org.freedesktop.timedate1'.freeze
|
30
|
+
# the timedated dbus service & interface
|
31
|
+
SERVICE = INTERFACE = 'org.freedesktop.timedate1'.freeze
|
32
32
|
|
33
33
|
include Mixin::MethodMissing
|
34
34
|
include Mixin::Properties
|
@@ -42,9 +42,10 @@ module DBus
|
|
42
42
|
#
|
43
43
|
# @param bus [DBus::SystemBus, DBus::SessionBus] dbus instance
|
44
44
|
def initialize(bus = Helpers.system_bus)
|
45
|
-
@service = bus.service(
|
45
|
+
@service = bus.service(SERVICE)
|
46
46
|
@object = @service.object(NODE)
|
47
|
-
|
47
|
+
@object.default_iface = INTERFACE
|
48
|
+
@object.introspect
|
48
49
|
end
|
49
50
|
end
|
50
51
|
end
|
data/lib/dbus/systemd/unit.rb
CHANGED
data/lib/dbus/systemd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbus-systemd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-dbus
|