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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a1c18bcb65c11b3f1ebbf08adc430101aa78c97
4
- data.tar.gz: c55902fd3075b02f75848407a827940085bddfcb
3
+ metadata.gz: a203558244ba02474699b78f779913bd0de959c9
4
+ data.tar.gz: 3f37d182843c8a10f4060d5fa031fa8ee72cfedf
5
5
  SHA512:
6
- metadata.gz: 60b67ffb08499525ae03c5e1a1cb3bd89fd1991decdb18e27c2703ff75115e5ce6f247dab2f6d8e76d8b07538a24e488ed0c3643c2877ebc08555a913b6f39c4
7
- data.tar.gz: c75dbdea5078606de8a7000c6883c64749bac099635a8baae6e180d4ea3860fe563f3a101ed935c5a9285b459c5006d31716cb3c1e5415f601061a4d56dfe785
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(INTERFACE)
50
+ @service = bus.service(SERVICE)
51
51
  @object = @service.object(NODE)
52
- .tap(&:introspect)
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
- INTERFACE = 'org.freedesktop.import1'.freeze
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::INTERFACE)
61
+ @service = bus.service(Importd::SERVICE)
62
62
  @object = @service.object(NODE)
63
- .tap(&:introspect)
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
- .tap(&:introspect)
41
+ @object.default_iface = INTERFACE
42
+ @object.introspect
42
43
  end
43
44
  end
44
45
  end
@@ -38,7 +38,8 @@ module DBus
38
38
  def initialize(id, manager = Manager.new)
39
39
  job_path = manager.GetJob(id).first
40
40
  @object = manager.service.object(job_path)
41
- .tap(&:introspect)
41
+ @object.default_iface = INTERFACE
42
+ @object.introspect
42
43
  end
43
44
  end
44
45
  end
@@ -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(INTERFACE)
49
+ @service = bus.service(SERVICE)
50
50
  @object = @service.object(NODE)
51
- .tap(&:introspect)
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 interface
31
- INTERFACE = 'org.freedesktop.login1'.freeze
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::INTERFACE)
84
+ @service = bus.service(Logind::SERVICE)
85
85
  @object = @service.object(NODE)
86
- .tap(&:introspect)
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(id, manager = Manager.new)
40
40
  seat_path = manager.GetSeat(id).first
41
41
  @object = manager.service.object(seat_path)
42
- .tap(&:introspect)
42
+ @object.default_iface = INTERFACE
43
+ @object.introspect
43
44
  end
44
45
  end
45
46
  end
@@ -39,7 +39,8 @@ module DBus
39
39
  def initialize(id, manager = Manager.new)
40
40
  session_path = manager.GetSession(id).first
41
41
  @object = manager.service.object(session_path)
42
- .tap(&:introspect)
42
+ @object.default_iface = INTERFACE
43
+ @object.introspect
43
44
  end
44
45
  end
45
46
  end
@@ -39,7 +39,8 @@ module DBus
39
39
  def initialize(id, manager = Manager.new)
40
40
  user_path = manager.GetUser(id).first
41
41
  @object = manager.service.object(user_path)
42
- .tap(&:introspect)
42
+ @object.default_iface = INTERFACE
43
+ @object.introspect
43
44
  end
44
45
  end
45
46
  end
@@ -39,7 +39,8 @@ module DBus
39
39
  def initialize(name, manager = Manager.new)
40
40
  image_path = manager.GetImage(name).first
41
41
  @object = manager.service.object(image_path)
42
- .tap(&:introspect)
42
+ @object.default_iface = INTERFACE
43
+ @object.introspect
43
44
  end
44
45
  end
45
46
  end
@@ -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
- .tap(&:introspect)
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 interface
30
- INTERFACE = 'org.freedesktop.machine1'.freeze
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::INTERFACE)
70
+ @service = bus.service(Machined::SERVICE)
71
71
  @object = @service.object(NODE)
72
- .tap(&:introspect)
72
+ @object.default_iface = INTERFACE
73
+ @object.introspect
73
74
  end
74
75
 
75
76
  #
@@ -29,8 +29,8 @@ require_relative 'job'
29
29
 
30
30
  module DBus
31
31
  module Systemd
32
- # systemd dbus interface
33
- INTERFACE = 'org.freedesktop.systemd1'.freeze
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::INTERFACE)
78
+ @service = bus.service(Systemd::SERVICE)
79
79
  @object = @service.object(NODE)
80
- .tap(&:introspect)
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
- .tap(&:introspect)
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 interface
29
- INTERFACE = 'org.freedesktop.network1'.freeze
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::INTERFACE)
50
+ @service = bus.service(Networkd::SERVICE)
51
51
  @object = @service.object(NODE)
52
- .tap(&:introspect)
52
+ @object.default_iface = INTERFACE
53
+ @object.introspect
53
54
  end
54
55
 
55
56
  #
@@ -39,7 +39,8 @@ module DBus
39
39
  def initialize(id, manager = Manager.new)
40
40
  link_path = manager.GetLink(id).first
41
41
  @object = manager.service.object(link_path)
42
- .tap(&:introspect)
42
+ @object.default_iface = INTERFACE
43
+ @object.introspect
43
44
  end
44
45
  end
45
46
  end
@@ -49,7 +49,8 @@ module DBus
49
49
  def initialize(bus = Systemd::Helpers.system_bus)
50
50
  @service = bus.service(Resolved::INTERFACE)
51
51
  @object = @service.object(NODE)
52
- .tap(&:introspect)
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(INTERFACE)
45
+ @service = bus.service(SERVICE)
46
46
  @object = @service.object(NODE)
47
- .tap(&:introspect)
47
+ @object.default_iface = INTERFACE
48
+ @object.introspect
48
49
  end
49
50
  end
50
51
  end
@@ -38,7 +38,8 @@ module DBus
38
38
  def initialize(name, manager = Manager.new)
39
39
  unit_path = manager.GetUnit(name).first
40
40
  @object = manager.service.object(unit_path)
41
- .tap(&:introspect)
41
+ @object.default_iface = INTERFACE
42
+ @object.introspect
42
43
  end
43
44
  end
44
45
  end
@@ -21,6 +21,6 @@
21
21
  module DBus
22
22
  module Systemd
23
23
  # dbus-systemd gem version
24
- VERSION = '1.0.0'.freeze
24
+ VERSION = '1.1.0'.freeze
25
25
  end
26
26
  end
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.0.0
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-05 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-dbus