dbus-systemd 0.5.0 → 0.6.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: e6971dca0ff26c382c81cea722a06a5e4d5b45cf
4
- data.tar.gz: 01a290eafbaa8eb1ab35fdca91733b25d46f1628
3
+ metadata.gz: 8681d88722217f0f3416f0a2396bb664e8513cfc
4
+ data.tar.gz: 2d30190ebeb66385cabc72bda175b3e9a525fedd
5
5
  SHA512:
6
- metadata.gz: acb062c0bd2b6c33754e6b2427b8c7dd72fd15d5ae360a5d41171e5a9a4daeb9064b5f4770a805c1517fe2a0f24991c42f8cac2ff2eae66f49eb8db2f8ee1d79
7
- data.tar.gz: f4c1b0d9ee6b0a994bd01728f474ca22b8861591b01552ea5cf54f4392e762b360bc0fca807e11dd04111bf53fe89db53747f71daabb74ffd2ee52fdaea511ff
6
+ metadata.gz: a50bac75c3f77bc1af7f938f32b3e72938368423d094ea356d261be2a11d695ee509998ed6cdf19b293f5c120085484d6c8713fa8707ec6a71cc9f91750060c2
7
+ data.tar.gz: 8b80ec906aa3b77b58673134e7cff197c87440ab0ea6a48b633f0b32062686692ee88beb3f21cda3c37caec98e01b89a6219af37382466f39670025a7aa05104
data/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Ruby library for simplifying access to systemd dbus interfaces.
4
4
 
5
+ *Huge* thanks to the [ruby-dbus](https://rubygems.org/gems/ruby-dbus) library,
6
+ without which this would have been awful to write.
7
+
5
8
  Recommended Reading
6
9
 
7
10
  - [introduction to d-bus concepts section of sd-bus announcement blog post](http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html)
data/dbus-systemd.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Nathan Williams"]
10
10
  spec.email = ["nath.e.will@gmail.com"]
11
11
 
12
- spec.summary = 'library for interfacing with systemd over dbus'
13
- spec.description = IO.read(File.join(File.dirname(__FILE__), 'README.md'))
12
+ spec.summary = 'systemd D-Bus API library'
13
+ spec.description = 'library for interfacing with systemd D-Bus APIs'
14
14
  spec.homepage = "https://github.com/nathwill/ruby-dbus-systemd"
15
15
  spec.license = "MIT"
16
16
 
@@ -15,7 +15,7 @@ module DBus
15
15
  id: 0,
16
16
  operation: 1,
17
17
  remote_file: 2,
18
- machine_name: 3,
18
+ image_name: 3,
19
19
  progress: 4,
20
20
  object_path: 5
21
21
  }
@@ -1,5 +1,5 @@
1
1
  module DBus
2
2
  module Systemd
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Williams
@@ -66,173 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
- description: "# DBus::Systemd\n\nRuby library for simplifying access to systemd dbus
70
- interfaces.\n\nRecommended Reading\n\n - [introduction to d-bus concepts section
71
- of sd-bus announcement blog post](http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html)\n
72
- \ - [systemd D-Bus specification](https://www.freedesktop.org/wiki/Software/systemd/dbus/)\n
73
- \ - [D-Bus specification](https://dbus.freedesktop.org/doc/dbus-specification.html)\n
74
- \ \n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem
75
- 'dbus-systemd'\n```\n\nAnd then execute:\n\n $ bundle\n\nOr install it yourself
76
- as:\n\n $ gem install dbus-systemd\n\n## Usage\n\n### DBus::Systemd::Hostnamed\n\nFor
77
- full docs, see [official docs](https://www.freedesktop.org/wiki/Software/systemd/hostnamed/).\n\n```ruby\nirb(main):001:0>
78
- h = DBus::Systemd::Hostnamed.new\n=> ...\nirb(main):002:0> h.object.methods - Object.methods\n=>
79
- [:Set, :Get, :GetAll, :Ping, :GetMachineId, :Introspect, :SetHostname, :SetStaticHostname,
80
- :SetPrettyHostname, :SetIconName, :SetChassis, :SetDeployment, :SetLocation, :[],
81
- :[]=, :path, :destination, :bus, :introspect, :api, :subnodes, :introspected, :default_iface,
82
- :interfaces, :define_shortcut_methods, :has_iface?, :on_signal, :subnodes=, :introspected=,
83
- :default_iface=]\nirb(main):004:0> h.Get(DBus::Systemd::Hostnamed::INTERFACE, 'Hostname').first\n=>
84
- \"derp.localdomain\"\nirb(main):005:0> h.SetHostname('my-hostname.localdomain',
85
- false)\n=> []\nirb(main):006:0> h.Get(DBus::Systemd::Hostnamed::INTERFACE, 'Hostname').first\n=>
86
- \"my-hostname.localdomain\"\n```\n\n### DBus::Systemd::Importd\n\nFor full docs,
87
- see [official docs](https://www.freedesktop.org/wiki/Software/systemd/importd/).\n\n```ruby\nirb(main):007:0>
88
- im = DBus::Systemd::Importd::Manager.new\n=> ...\nirb(main):008:0> im.object.methods
89
- - Object.methods\n=> [:Set, :Get, :GetAll, :ListTransfers, :Ping, :GetMachineId,
90
- :Introspect, :ImportTar, :ImportRaw, :ExportTar, :ExportRaw, :PullTar, :PullRaw,
91
- :CancelTransfer, :[], :[]=, :path, :destination, :bus, :introspect, :api, :subnodes,
92
- :introspected, :default_iface, :interfaces, :define_shortcut_methods, :has_iface?,
93
- :on_signal, :subnodes=, :introspected=, :default_iface=]\nirb(main):008:0> im.PullRaw('https://dl.fedoraproject.org/pub/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.raw.xz',
94
- 'Fedora-24', 'no', false)\n=> [1, \"/org/freedesktop/import1/transfer/_1\"]\n> im.transfers\n=>
95
- [{:id=>1, :operation=>\"pull-raw\", :remote_file=>\"https://dl.fedoraproject.org/pub/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.raw.xz\",
96
- :machine_name=>\"Fedora-24\", :progress=>0.0, :object_path=>\"/org/freedesktop/import1/transfer/_1\"}]\n```\n\n###
97
- DBus::Systemd::Localed\n\nFor full docs, see [official docs](https://www.freedesktop.org/wiki/Software/systemd/localed/).\n\n```ruby\nirb(main):009:0>
98
- l = DBus::Systemd::Localed.new\n=> ...\nirb(main):010:0> l.object.methods - Object.methods\n=>
99
- [:Set, :Get, :GetAll, :Ping, :GetMachineId, :Introspect, :SetLocale, :SetVConsoleKeyboard,
100
- :SetX11Keyboard, :[], :[]=, :path, :destination, :bus, :introspect, :api, :subnodes,
101
- :introspected, :default_iface, :interfaces, :define_shortcut_methods, :has_iface?,
102
- :on_signal, :subnodes=, :introspected=, :default_iface=]\nirb(main):011:0> l.GetAll(DBus::Systemd::Localed::INTERFACE).first\n=>
103
- {\"Locale\"=>[\"LANG=en_US.UTF-8\"], \"X11Layout\"=>\"\", \"X11Model\"=>\"\", \"X11Variant\"=>\"\",
104
- \"X11Options\"=>\"\", \"VConsoleKeymap\"=>\"us\", \"VConsoleKeymapToggle\"=>\"\"}\n```\n\n###
105
- DBus::Systemd::Logind\n\nFor full docs, see [official docs](https://www.freedesktop.org/wiki/Software/systemd/logind/).\n\n```ruby\nirb(main):012:0>
106
- l = DBus::Systemd::Logind::Manager.new\n=> ...\nirb(main):013:0> l.object.methods
107
- - Object.methods\n=> [:Set, :Get, :GetAll, :ListSeats, :ListSessions, :ListUsers,
108
- :GetSession, :GetUser, :GetSeat, :Ping, :GetMachineId, :Introspect, :GetSessionByPID,
109
- :GetUserByPID, :ListInhibitors, :CreateSession, :ReleaseSession, :ActivateSession,
110
- :ActivateSessionOnSeat, :LockSession, :UnlockSession, :LockSessions, :UnlockSessions,
111
- :KillSession, :KillUser, :TerminateSession, :TerminateUser, :TerminateSeat, :SetUserLinger,
112
- :AttachDevice, :FlushDevices, :PowerOff, :Reboot, :Suspend, :Hibernate, :HybridSleep,
113
- :CanPowerOff, :CanReboot, :CanSuspend, :CanHibernate, :CanHybridSleep, :ScheduleShutdown,
114
- :CancelScheduledShutdown, :Inhibit, :CanRebootToFirmwareSetup, :SetRebootToFirmwareSetup,
115
- :SetWallMessage, :[], :[]=, :path, :destination, :bus, :introspect, :api, :subnodes,
116
- :introspected, :default_iface, :interfaces, :define_shortcut_methods, :has_iface?,
117
- :on_signal, :subnodes=, :introspected=, :default_iface=]\nirb(main):014:0> l.users\n=>
118
- [{:id=>1000, :name=>\"vagrant\", :object_path=>\"/org/freedesktop/login1/user/_1000\"}]\nirb(main):015:0>
119
- l.seats\n=> [{:id=>\"seat0\", :object_path=>\"/org/freedesktop/login1/seat/seat0\"}]\nirb(main):016:0>
120
- l.sessions\n=> [{:id=>\"3\", :user_id=>1000, :user_name=>\"vagrant\", :seat_id=>\"\",
121
- :object_path=>\"/org/freedesktop/login1/session/_33\"}]\nirb(main):017:0> u = l.user(1000)\n=>
122
- ...\nirb(main):019:0> u.GetAll(DBus::Systemd::Logind::User::INTERFACE).first\n=>
123
- {\"UID\"=>1000, \"GID\"=>1000, \"Name\"=>\"vagrant\", \"Timestamp\"=>1475452037907590,
124
- \"TimestampMonotonic\"=>122159600, \"RuntimePath\"=>\"/run/user/1000\", \"Service\"=>\"user@1000.service\",
125
- \"Slice\"=>\"user-1000.slice\", \"Display\"=>[\"3\", \"/org/freedesktop/login1/session/_33\"],
126
- \"State\"=>\"active\", \"Sessions\"=>[[\"3\", \"/org/freedesktop/login1/session/_33\"]],
127
- \"IdleHint\"=>false, \"IdleSinceHint\"=>0, \"IdleSinceHintMonotonic\"=>0, \"Linger\"=>false}\n```\n\n###
128
- DBus::Systemd::Machined\n\nFor full docs, see [official docs](https://www.freedesktop.org/wiki/Software/systemd/machined/).\n\n```ruby\nirb(main):021:0>
129
- mm = DBus::Systemd::Machined::Manager.new\n=> ...\nirb(main):022:0> mm.object.methods
130
- - Object.methods\n=> [:Set, :Get, :GetAll, :ListMachines, :ListImages, :GetMachine,
131
- :GetImage, :Ping, :GetMachineId, :Introspect, :GetMachineByPID, :CreateMachine,
132
- :CreateMachineWithNetwork, :RegisterMachine, :RegisterMachineWithNetwork, :TerminateMachine,
133
- :KillMachine, :GetMachineAddresses, :GetMachineOSRelease, :OpenMachinePTY, :OpenMachineLogin,
134
- :OpenMachineShell, :BindMountMachine, :CopyFromMachine, :CopyToMachine, :RemoveImage,
135
- :RenameImage, :CloneImage, :MarkImageReadOnly, :SetPoolLimit, :SetImageLimit, :MapFromMachineUser,
136
- :MapToMachineUser, :MapFromMachineGroup, :MapToMachineGroup, :[], :[]=, :path, :destination,
137
- :bus, :introspect, :api, :subnodes, :introspected, :default_iface, :interfaces,
138
- :define_shortcut_methods, :has_iface?, :on_signal, :subnodes=, :introspected=, :default_iface=]\nirb(main):024:0>
139
- mm.machines\n=> [{:name=>\".host\", :class=>\"host\", :service_id=>\"\", :object_path=>\"/org/freedesktop/machine1/machine/_2ehost\"}]\nirb(main):023:0>
140
- mm.images\n=> [{:name=>\"Fedora-23\", :type=>\"raw\", :read_only=>false, :creation_time=>1446171608000000,
141
- :modification_time=>1446171608000000, :disk_space=>589676544, :object_path=>\"/org/freedesktop/machine1/image/Fedora_2d23\"},
142
- {:name=>\".raw-https:\\\\x2f\\\\x2fdl\\\\x2efedoraproject\\\\x2eorg\\\\x2fpub\\\\x2ffedora\\\\x2flinux\\\\x2freleases\\\\x2f24\\\\x2fCloudImages\\\\x2fx86_64\\\\x2fimages\\\\x2fFedora-Cloud-Base-24-1\\\\x2e2\\\\x2ex86_64\\\\x2eraw\\\\x2exz.\\\\x227fef0a4-5353f9c7441a0\\\\x22\",
143
- :type=>\"raw\", :read_only=>true, :creation_time=>1465922207000000, :modification_time=>1465922207000000,
144
- :disk_space=>540872704, :object_path=>\"/org/freedesktop/machine1/image/_2eraw_2dhttps_3a_5cx2f_5cx2fdl_5cx2efedoraproject_5cx2eorg_5cx2fpub_5cx2ffedora_5cx2flinux_5cx2freleases_5cx2f24_5cx2fCloudImages_5cx2fx86_5f64_5cx2fimages_5cx2fFedora_2dCloud_2dBase_2d24_2d1_5cx2e2_5cx2ex86_5f64_5cx2eraw_5cx2exz_2e_5cx227fef0a4_2d5353f9c7441a0_5cx22\"},
145
- {:name=>\".raw-https:\\\\x2f\\\\x2fdl\\\\x2efedoraproject\\\\x2eorg\\\\x2fpub\\\\x2ffedora\\\\x2flinux\\\\x2freleases\\\\x2f23\\\\x2fCloud\\\\x2fx86_64\\\\x2fImages\\\\x2fFedora-Cloud-Base-23-20151030\\\\x2ex86_64\\\\x2eraw\\\\x2exz.\\\\x229205894-5234910faa600\\\\x22\",
146
- :type=>\"raw\", :read_only=>true, :creation_time=>1446171608000000, :modification_time=>1446171608000000,
147
- :disk_space=>589676544, :object_path=>\"/org/freedesktop/machine1/image/_2eraw_2dhttps_3a_5cx2f_5cx2fdl_5cx2efedoraproject_5cx2eorg_5cx2fpub_5cx2ffedora_5cx2flinux_5cx2freleases_5cx2f23_5cx2fCloud_5cx2fx86_5f64_5cx2fImages_5cx2fFedora_2dCloud_2dBase_2d23_2d20151030_5cx2ex86_5f64_5cx2eraw_5cx2exz_2e_5cx229205894_2d5234910faa600_5cx22\"},
148
- {:name=>\"Fedora-24\", :type=>\"raw\", :read_only=>false, :creation_time=>1465922207000000,
149
- :modification_time=>1465922207000000, :disk_space=>540872704, :object_path=>\"/org/freedesktop/machine1/image/Fedora_2d24\"},
150
- {:name=>\"test\", :type=>\"raw\", :read_only=>false, :creation_time=>1446171608000000,
151
- :modification_time=>1446171608000000, :disk_space=>589676544, :object_path=>\"/org/freedesktop/machine1/image/test\"},
152
- {:name=>\".host\", :type=>\"directory\", :read_only=>false, :creation_time=>0, :modification_time=>0,
153
- :disk_space=>18446744073709551615, :object_path=>\"/org/freedesktop/machine1/image/_2ehost\"}]\nirb(main):025:0>
154
- mm.GetAll(DBus::Systemd::Machined::Manager::INTERFACE).first\n=> {\"PoolPath\"=>\"/var/lib/machines\",
155
- \"PoolUsage\"=>1191448576, \"PoolLimit\"=>2105020416}\nirb(main):026:0> mi = mm.image('Fedora-24')\n=>
156
- ...\nirb(main):027:0> mi.object.methods - Object.methods\n=> [:Set, :Get, :GetAll,
157
- :Ping, :GetMachineId, :Introspect, :Remove, :Rename, :Clone, :MarkReadOnly, :SetLimit,
158
- :[], :[]=, :path, :destination, :bus, :introspect, :api, :subnodes, :introspected,
159
- :default_iface, :interfaces, :define_shortcut_methods, :has_iface?, :on_signal,
160
- :subnodes=, :introspected=, :default_iface=]\nirb(main):028:0> mi.GetAll(DBus::Systemd::Machined::Image::INTERFACE).first\n=>
161
- {\"Name\"=>\"Fedora-24\", \"Path\"=>\"/var/lib/machines/Fedora-24.raw\", \"Type\"=>\"raw\",
162
- \"ReadOnly\"=>false, \"CreationTimestamp\"=>1465922207000000, \"ModificationTimestamp\"=>1465922207000000,
163
- \"Usage\"=>540872704, \"Limit\"=>3221225472, \"UsageExclusive\"=>540872704, \"LimitExclusive\"=>3221225472}\nirb(main):029:0>
164
- machine = mm.machine('.host')\n=> ..\nirb(main):030:0> machine.object.methods -
165
- Object.methods\n=> [:Set, :Get, :GetAll, :Kill, :Ping, :GetMachineId, :Introspect,
166
- :Terminate, :GetAddresses, :GetOSRelease, :OpenPTY, :OpenLogin, :OpenShell, :BindMount,
167
- :CopyFrom, :CopyTo, :[], :[]=, :path, :destination, :bus, :introspect, :api, :subnodes,
168
- :introspected, :default_iface, :interfaces, :define_shortcut_methods, :has_iface?,
169
- :on_signal, :subnodes=, :introspected=, :default_iface=]\nirb(main):032:0> machine.GetAll(DBus::Systemd::Machined::Machine::INTERFACE).first\n=>
170
- {\"Name\"=>\".host\", \"Id\"=>[77, 46, 68, 242, 105, 232, 78, 52, 157, 152, 76,
171
- 171, 175, 145, 140, 130], \"Timestamp\"=>1475451915747985, \"TimestampMonotonic\"=>0,
172
- \"Service\"=>\"\", \"Unit\"=>\"-.slice\", \"Leader\"=>1, \"Class\"=>\"host\", \"RootDirectory\"=>\"/\",
173
- \"NetworkInterfaces\"=>[], \"State\"=>\"running\"}\n```\n\n### DBus::Systemd::Resolved\n\nFor
174
- full docs, see [official docs](https://www.freedesktop.org/wiki/Software/systemd/resolved/).\n\n```ruby\nirb(main):030:0>
175
- rm = DBus::Systemd::Resolved::Manager.new\n=> ...\nirb(main):030:0> rm.object.methods
176
- - Object.methods\n=> [:Set, :Get, :GetAll, :Ping, :GetMachineId, :Introspect, :GetLink,
177
- :ResolveHostname, :ResolveAddress, :ResolveRecord, :ResolveService, :ResetStatistics,
178
- :SetLinkDNS, :SetLinkDomains, :SetLinkLLMNR, :SetLinkMulticastDNS, :SetLinkDNSSEC,
179
- :SetLinkDNSSECNegativeTrustAnchors, :RevertLink, :[], :[]=, :path, :destination,
180
- :bus, :introspect, :api, :subnodes, :introspected, :default_iface, :interfaces,
181
- :define_shortcut_methods, :has_iface?, :on_signal, :subnodes=, :introspected=, :default_iface=]\nirb(main):030:0>
182
- rm.Get(DBus::Resolved::Manager::INTERFACE, 'DNSSECSupported').first\n=> false\n```\n\n###
183
- DBus::Systemd::Timedated\n\nFor full docs, see [official docs](https://www.freedesktop.org/wiki/Software/systemd/timedated/).\n\n```ruby\nirb(main):030:0>
184
- \ t = DBus::Systemd::Timedated.new\n=> ...\nirb(main):030:0> t.object.methods -
185
- Object.methods\n=> [:Set, :Get, :GetAll, :Ping, :GetMachineId, :Introspect, :SetTime,
186
- :SetTimezone, :SetLocalRTC, :SetNTP, :[], :[]=, :path, :destination, :bus, :introspect,
187
- :api, :subnodes, :introspected, :default_iface, :interfaces, :define_shortcut_methods,
188
- :has_iface?, :on_signal, :subnodes=, :introspected=, :default_iface=]\nirb(main):030:0>
189
- t.GetAll(DBus::Systemd::Timedated::INTERFACE).first\n=> {\"Timezone\"=>\"UTC\",
190
- \"LocalRTC\"=>true, \"CanNTP\"=>true, \"NTP\"=>false, \"NTPSynchronized\"=>true,
191
- \"TimeUSec\"=>1475454744352557, \"RTCTimeUSec\"=>1475454742000000}\nirb(main):030:0>
192
- t.SetTimezone('America/Los_Angeles', false)\n=> []\nirb(main):030:0> t.Get(DBus::Systemd::Timedated::INTERFACE,
193
- 'Timezone').first\n=> \"America/Los_Angeles\"\n```\n\n### DBus::Systemd::Manager\n\nFor
194
- full docs, see [official docs](https://www.freedesktop.org/wiki/Software/systemd/dbus/).\n\n```ruby\nirb(main):030:0>
195
- mgr = DBus::Systemd::Manager.new\n=> ...\nirb(main):030:0> mgr.object.methods -
196
- Object.methods\n=> [:Set, :Get, :ListUnits, :GetAll, :GetUnit, :GetJob, :Ping, :GetMachineId,
197
- :Introspect, :GetUnitByPID, :LoadUnit, :StartUnit, :StartUnitReplace, :StopUnit,
198
- :ReloadUnit, :RestartUnit, :TryRestartUnit, :ReloadOrRestartUnit, :ReloadOrTryRestartUnit,
199
- :KillUnit, :ResetFailedUnit, :SetUnitProperties, :StartTransientUnit, :CancelJob,
200
- :ClearJobs, :ResetFailed, :ListUnitsFiltered, :ListJobs, :Subscribe, :Unsubscribe,
201
- :Dump, :CreateSnapshot, :RemoveSnapshot, :Reload, :Reexecute, :Exit, :Reboot, :PowerOff,
202
- :Halt, :KExec, :SwitchRoot, :SetEnvironment, :UnsetEnvironment, :UnsetAndSetEnvironment,
203
- :ListUnitFiles, :GetUnitFileState, :EnableUnitFiles, :DisableUnitFiles, :ReenableUnitFiles,
204
- :LinkUnitFiles, :PresetUnitFiles, :PresetUnitFilesWithMode, :MaskUnitFiles, :UnmaskUnitFiles,
205
- :SetDefaultTarget, :GetDefaultTarget, :PresetAllUnitFiles, :AddDependencyUnitFiles,
206
- :SetExitCode, :[], :[]=, :path, :destination, :bus, :introspect, :api, :subnodes,
207
- :introspected, :default_iface, :interfaces, :define_shortcut_methods, :has_iface?,
208
- :on_signal, :subnodes=, :introspected=, :default_iface=] \nirb(main):030:0> mgr.GetDefaultTarget.first\n=>
209
- \"multi-user.target\"\nirb(main):036:0> mgr.Get(DBus::Systemd::Manager::INTERFACE,
210
- 'Version').first\n=> \"229\"\nirb(main):037:0> mgr.Get(DBus::Systemd::Manager::INTERFACE,
211
- 'UnitPath').first\n=> [\"/etc/systemd/system\", \"/run/systemd/system\", \"/run/systemd/generator\",
212
- \"/usr/local/lib/systemd/system\", \"/usr/lib/systemd/system\", \"/run/systemd/generator.late\"]\nirb(main):038:0>
213
- mgr.Get(DBus::Systemd::Manager::INTERFACE, 'NFailedUnits').first\n=> 0\n```\n\n###
214
- DBus::Systemd::Unit\n\nFor full docs, see [official docs](https://www.freedesktop.org/wiki/Software/systemd/dbus/).\n\n```ruby\nirb(main):005:0>
215
- sshd = DBus::Systemd::Unit.new('sshd.service')\n=> ...\nirb(main):006:0> sshd.object.methods
216
- - Object.methods\n=> [:Set, :Get, :GetAll, :Kill, :Ping, :GetMachineId, :Introspect,
217
- :ResetFailed, :Reload, :Start, :Stop, :Restart, :TryRestart, :ReloadOrRestart, :ReloadOrTryRestart,
218
- :SetProperties, :[], :[]=, :path, :destination, :bus, :introspect, :api, :subnodes,
219
- :introspected, :default_iface, :interfaces, :define_shortcut_methods, :has_iface?,
220
- :on_signal, :subnodes=, :introspected=, :default_iface=]\nirb(main):007:0> sshd.Get(DBus::Systemd::Unit::INTERFACE,
221
- 'Wants').first\n=> [\"sshd-keygen.target\"]\nirb(main):008:0> sshd.Get(DBus::Systemd::Unit::Service::INTERFACE,
222
- 'ExecStart').first\n=> [[\"/usr/sbin/sshd\", [\"/usr/sbin/sshd\", \"$OPTIONS\"],
223
- false, 1475455155565079, 3239817089, 1475455155581392, 3239833403, 5860, 1, 0]]\nirb(main):010:0>
224
- sshd.Restart('replace')\n=> [\"/org/freedesktop/systemd1/job/3326\"]\n```\n\n##
225
- Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies.
226
- Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive
227
- prompt that will allow you to experiment.\n\nTo install this gem onto your local
228
- machine, run `bundle exec rake install`. To release a new version, update the version
229
- number in `version.rb`, and then run `bundle exec rake release`, which will create
230
- a git tag for the version, push git commits and tags, and push the `.gem` file to
231
- [rubygems.org](https://rubygems.org).\n\nA Vagrantfile is provided in the VCS root
232
- that creates a Fedora vagrant box, with which library can be tested and D-Bus interfaces
233
- explored.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub
234
- at https://github.com/nathwill/ruby-dbus-systemd.\n\n## License\n\nThe gem is available
235
- as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n"
69
+ description: library for interfacing with systemd D-Bus APIs
236
70
  email:
237
71
  - nath.e.will@gmail.com
238
72
  executables: []
@@ -312,5 +146,5 @@ rubyforge_project:
312
146
  rubygems_version: 2.6.4
313
147
  signing_key:
314
148
  specification_version: 4
315
- summary: library for interfacing with systemd over dbus
149
+ summary: systemd D-Bus API library
316
150
  test_files: []