dbus-systemd 0.6.0 → 0.7.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.rb +1 -0
- data/lib/dbus/systemd/hostnamed.rb +1 -0
- data/lib/dbus/systemd/importd/manager.rb +1 -0
- data/lib/dbus/systemd/importd/transfer.rb +1 -0
- data/lib/dbus/systemd/job.rb +1 -0
- data/lib/dbus/systemd/localed.rb +1 -0
- data/lib/dbus/systemd/logind/manager.rb +1 -0
- data/lib/dbus/systemd/logind/seat.rb +1 -0
- data/lib/dbus/systemd/logind/session.rb +1 -0
- data/lib/dbus/systemd/logind/user.rb +1 -0
- data/lib/dbus/systemd/machined/image.rb +1 -0
- data/lib/dbus/systemd/machined/machine.rb +1 -0
- data/lib/dbus/systemd/machined/manager.rb +1 -0
- data/lib/dbus/systemd/manager.rb +1 -0
- data/lib/dbus/systemd/mixin.rb +6 -0
- data/lib/dbus/systemd/networkd.rb +2 -0
- data/lib/dbus/systemd/networkd/link.rb +20 -0
- data/lib/dbus/systemd/networkd/manager.rb +31 -0
- data/lib/dbus/systemd/resolved/link.rb +1 -0
- data/lib/dbus/systemd/resolved/manager.rb +1 -0
- data/lib/dbus/systemd/timedated.rb +1 -0
- data/lib/dbus/systemd/unit.rb +1 -0
- data/lib/dbus/systemd/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cd2469e3dc60e16cf19abd9bee2e6a6461af4b5
|
4
|
+
data.tar.gz: 28b3857611bda2e745538aad82896b087311f83c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de319d06ece28ba8b079c4a5475b96f2eb9232312e167dd8a1befdf1f9983a931f357780c4453c6ace2773f46dcd9247c64710124b7d66c953320d6120201c4a
|
7
|
+
data.tar.gz: 8d541b384d3f00d06d1c89f8e929e94595f55e9424df20eceffe823742b0409135ccafee8eb763c9b7ca395bc0af3bb74340e08bead31e667a89392154d542eb
|
data/lib/dbus/systemd.rb
CHANGED
@@ -7,6 +7,7 @@ require_relative 'systemd/logind'
|
|
7
7
|
require_relative 'systemd/machined'
|
8
8
|
require_relative 'systemd/manager'
|
9
9
|
require_relative 'systemd/mixin'
|
10
|
+
require_relative 'systemd/networkd'
|
10
11
|
require_relative 'systemd/resolved'
|
11
12
|
require_relative 'systemd/timedated'
|
12
13
|
require_relative 'systemd/unit'
|
data/lib/dbus/systemd/job.rb
CHANGED
data/lib/dbus/systemd/localed.rb
CHANGED
data/lib/dbus/systemd/manager.rb
CHANGED
data/lib/dbus/systemd/mixin.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative '../mixin'
|
2
|
+
require_relative 'manager'
|
3
|
+
|
4
|
+
module DBus
|
5
|
+
module Systemd
|
6
|
+
module Networkd
|
7
|
+
class Link
|
8
|
+
INTERFACE = 'org.freedesktop.network1.Link'
|
9
|
+
|
10
|
+
include Systemd::Mixin::MethodMissing
|
11
|
+
include Systemd::Mixin::Properties
|
12
|
+
|
13
|
+
def initialize(id, manager = Manager.new)
|
14
|
+
@object = manager.service.object("#{Manager::NODE}/link/#{id}")
|
15
|
+
.tap(&:introspect)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative '../helpers'
|
2
|
+
require_relative '../mixin'
|
3
|
+
require_relative 'link'
|
4
|
+
|
5
|
+
module DBus
|
6
|
+
module Systemd
|
7
|
+
module Networkd
|
8
|
+
INTERFACE = 'org.freedesktop.network1'
|
9
|
+
|
10
|
+
class Manager
|
11
|
+
NODE = '/org/freedesktop/network1'
|
12
|
+
INTERFACE = 'org.freedesktop.network1.Manager'
|
13
|
+
|
14
|
+
include Systemd::Mixin::MethodMissing
|
15
|
+
include Systemd::Mixin::Properties
|
16
|
+
|
17
|
+
attr_reader :service
|
18
|
+
|
19
|
+
def initialize(bus = Systemd::Helpers.system_bus)
|
20
|
+
@service = bus.service(Networkd::INTERFACE)
|
21
|
+
@object = @service.object(NODE)
|
22
|
+
.tap(&:introspect)
|
23
|
+
end
|
24
|
+
|
25
|
+
def link(id)
|
26
|
+
Link.new(id, self)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/dbus/systemd/unit.rb
CHANGED
data/lib/dbus/systemd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbus-systemd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Williams
|
@@ -104,6 +104,9 @@ files:
|
|
104
104
|
- lib/dbus/systemd/machined/manager.rb
|
105
105
|
- lib/dbus/systemd/manager.rb
|
106
106
|
- lib/dbus/systemd/mixin.rb
|
107
|
+
- lib/dbus/systemd/networkd.rb
|
108
|
+
- lib/dbus/systemd/networkd/link.rb
|
109
|
+
- lib/dbus/systemd/networkd/manager.rb
|
107
110
|
- lib/dbus/systemd/resolved.rb
|
108
111
|
- lib/dbus/systemd/resolved/link.rb
|
109
112
|
- lib/dbus/systemd/resolved/manager.rb
|