dbus-systemd 0.3.2 → 0.4.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 +6 -6
- data/lib/dbus/systemd/job.rb +1 -1
- data/lib/dbus/systemd/manager.rb +1 -1
- data/lib/dbus/systemd/method_missing.rb +2 -0
- data/lib/dbus/systemd/unit.rb +14 -3
- data/lib/dbus/systemd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95c8685569c4c7a3c26570f4557f697f7891047d
|
4
|
+
data.tar.gz: 367841855b267ed551f703d89f46be3fa9e7d226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac18191a888481e6eb5ea85deb48e314fe7331854155206d7eb2eda330131959234045dc775064c7fe6f6c28d4a84fa3654d071e9c73209037317cdd3b8c7a0
|
7
|
+
data.tar.gz: d365aae9ecc672af3bdef7b7bb8e496a2aaa8afb8f0e73c1142f86e942ea1d16bd9fa2ad3ad66343c773fe058545237e6be67eae47cac2eaf066ed86997b625d
|
data/lib/dbus/systemd.rb
CHANGED
@@ -1,9 +1,4 @@
|
|
1
|
-
|
2
|
-
require_relative "systemd/manager"
|
3
|
-
require_relative "systemd/unit"
|
4
|
-
require_relative "systemd/job"
|
5
|
-
|
6
|
-
require "dbus"
|
1
|
+
require 'dbus'
|
7
2
|
|
8
3
|
module DBus
|
9
4
|
module Systemd
|
@@ -20,3 +15,8 @@ module DBus
|
|
20
15
|
module_function :system_bus, :session_bus
|
21
16
|
end
|
22
17
|
end
|
18
|
+
|
19
|
+
require_relative 'systemd/version'
|
20
|
+
require_relative 'systemd/manager'
|
21
|
+
require_relative 'systemd/unit'
|
22
|
+
require_relative 'systemd/job'
|
data/lib/dbus/systemd/job.rb
CHANGED
data/lib/dbus/systemd/manager.rb
CHANGED
data/lib/dbus/systemd/unit.rb
CHANGED
@@ -8,13 +8,24 @@ module DBus
|
|
8
8
|
|
9
9
|
include MethodMissing
|
10
10
|
|
11
|
-
attr_accessor :object
|
12
|
-
|
13
11
|
def initialize(name, manager = Manager.new)
|
14
|
-
unit_path = manager.
|
12
|
+
unit_path = manager.GetUnit(name).first
|
15
13
|
@object = manager.service.object(unit_path)
|
16
14
|
.tap(&:introspect)
|
17
15
|
end
|
18
16
|
end
|
19
17
|
end
|
20
18
|
end
|
19
|
+
|
20
|
+
require_relative 'unit/automount'
|
21
|
+
require_relative 'unit/device'
|
22
|
+
require_relative 'unit/mount'
|
23
|
+
require_relative 'unit/path'
|
24
|
+
require_relative 'unit/scope'
|
25
|
+
require_relative 'unit/service'
|
26
|
+
require_relative 'unit/slice'
|
27
|
+
require_relative 'unit/snapshot'
|
28
|
+
require_relative 'unit/socket'
|
29
|
+
require_relative 'unit/swap'
|
30
|
+
require_relative 'unit/target'
|
31
|
+
require_relative 'unit/timer'
|
data/lib/dbus/systemd/version.rb
CHANGED