dbus-systemd 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +8 -0
  3. data/README.md +57 -8
  4. data/Rakefile +5 -3
  5. data/Vagrantfile +3 -3
  6. data/bin/console +3 -3
  7. data/dbus-systemd.gemspec +14 -13
  8. data/lib/dbus/systemd.rb +20 -0
  9. data/lib/dbus/systemd/helpers.rb +20 -0
  10. data/lib/dbus/systemd/hostnamed.rb +22 -2
  11. data/lib/dbus/systemd/importd.rb +20 -0
  12. data/lib/dbus/systemd/importd/manager.rb +24 -4
  13. data/lib/dbus/systemd/importd/transfer.rb +22 -2
  14. data/lib/dbus/systemd/job.rb +22 -2
  15. data/lib/dbus/systemd/localed.rb +22 -2
  16. data/lib/dbus/systemd/logind.rb +20 -0
  17. data/lib/dbus/systemd/logind/manager.rb +27 -7
  18. data/lib/dbus/systemd/logind/seat.rb +22 -2
  19. data/lib/dbus/systemd/logind/session.rb +22 -2
  20. data/lib/dbus/systemd/logind/user.rb +22 -2
  21. data/lib/dbus/systemd/machined.rb +20 -0
  22. data/lib/dbus/systemd/machined/image.rb +22 -2
  23. data/lib/dbus/systemd/machined/machine.rb +22 -2
  24. data/lib/dbus/systemd/machined/manager.rb +25 -5
  25. data/lib/dbus/systemd/manager.rb +25 -5
  26. data/lib/dbus/systemd/mixin.rb +20 -0
  27. data/lib/dbus/systemd/networkd.rb +20 -0
  28. data/lib/dbus/systemd/networkd/link.rb +22 -2
  29. data/lib/dbus/systemd/networkd/manager.rb +23 -3
  30. data/lib/dbus/systemd/resolved.rb +20 -0
  31. data/lib/dbus/systemd/resolved/link.rb +22 -2
  32. data/lib/dbus/systemd/resolved/manager.rb +23 -3
  33. data/lib/dbus/systemd/timedated.rb +22 -2
  34. data/lib/dbus/systemd/unit.rb +22 -2
  35. data/lib/dbus/systemd/unit/automount.rb +26 -4
  36. data/lib/dbus/systemd/unit/device.rb +26 -4
  37. data/lib/dbus/systemd/unit/mount.rb +26 -4
  38. data/lib/dbus/systemd/unit/path.rb +26 -4
  39. data/lib/dbus/systemd/unit/scope.rb +26 -4
  40. data/lib/dbus/systemd/unit/service.rb +26 -4
  41. data/lib/dbus/systemd/unit/slice.rb +26 -4
  42. data/lib/dbus/systemd/unit/snapshot.rb +26 -4
  43. data/lib/dbus/systemd/unit/socket.rb +26 -4
  44. data/lib/dbus/systemd/unit/swap.rb +26 -4
  45. data/lib/dbus/systemd/unit/target.rb +26 -4
  46. data/lib/dbus/systemd/unit/timer.rb +26 -4
  47. data/lib/dbus/systemd/version.rb +21 -1
  48. metadata +21 -6
@@ -1,9 +1,31 @@
1
+ #
2
+ # Copyright (C) 2016 Nathan Williams <nath.e.will@gmail.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
1
21
  require_relative '../unit'
2
22
 
3
- module DBus::Systemd
4
- class Unit
5
- class Scope < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Scope'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Scope < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Scope'.freeze
28
+ end
7
29
  end
8
30
  end
9
31
  end
@@ -1,9 +1,31 @@
1
+ #
2
+ # Copyright (C) 2016 Nathan Williams <nath.e.will@gmail.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
1
21
  require_relative '../unit'
2
22
 
3
- module DBus::Systemd
4
- class Unit
5
- class Service < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Service'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Service < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Service'.freeze
28
+ end
7
29
  end
8
30
  end
9
31
  end
@@ -1,9 +1,31 @@
1
+ #
2
+ # Copyright (C) 2016 Nathan Williams <nath.e.will@gmail.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
1
21
  require_relative '../unit'
2
22
 
3
- module DBus::Systemd
4
- class Unit
5
- class Slice < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Slice'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Slice < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Slice'.freeze
28
+ end
7
29
  end
8
30
  end
9
31
  end
@@ -1,9 +1,31 @@
1
+ #
2
+ # Copyright (C) 2016 Nathan Williams <nath.e.will@gmail.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
1
21
  require_relative '../unit'
2
22
 
3
- module DBus::Systemd
4
- class Unit
5
- class Snapshot < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Snapshot'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Snapshot < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Snapshot'.freeze
28
+ end
7
29
  end
8
30
  end
9
31
  end
@@ -1,9 +1,31 @@
1
+ #
2
+ # Copyright (C) 2016 Nathan Williams <nath.e.will@gmail.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
1
21
  require_relative '../unit'
2
22
 
3
- module DBus::Systemd
4
- class Unit
5
- class Socket < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Socket'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Socket < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Socket'.freeze
28
+ end
7
29
  end
8
30
  end
9
31
  end
@@ -1,9 +1,31 @@
1
+ #
2
+ # Copyright (C) 2016 Nathan Williams <nath.e.will@gmail.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
1
21
  require_relative '../unit'
2
22
 
3
- module DBus::Systemd
4
- class Unit
5
- class Swap < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Swap'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Swap < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Swap'.freeze
28
+ end
7
29
  end
8
30
  end
9
31
  end
@@ -1,9 +1,31 @@
1
+ #
2
+ # Copyright (C) 2016 Nathan Williams <nath.e.will@gmail.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
1
21
  require_relative '../unit'
2
22
 
3
- module DBus::Systemd
4
- class Unit
5
- class Target < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Target'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Target < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Target'.freeze
28
+ end
7
29
  end
8
30
  end
9
31
  end
@@ -1,9 +1,31 @@
1
+ #
2
+ # Copyright (C) 2016 Nathan Williams <nath.e.will@gmail.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
1
21
  require_relative '../unit'
2
22
 
3
- module DBus::Systemd
4
- class Unit
5
- class Timer < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Unit'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Timer < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Timer'.freeze
28
+ end
7
29
  end
8
30
  end
9
31
  end
@@ -1,5 +1,25 @@
1
+ #
2
+ # Copyright (C) 2016 Nathan Williams <nath.e.will@gmail.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
1
21
  module DBus
2
22
  module Systemd
3
- VERSION = '0.7.0'
23
+ VERSION = '0.8.0'.freeze
4
24
  end
5
25
  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: 0.7.0
4
+ version: 0.8.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-03 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-dbus
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.10'
33
+ version: '1.12'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.10'
40
+ version: '1.12'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '10.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '10.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.43'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.43'
69
83
  description: library for interfacing with systemd D-Bus APIs
70
84
  email:
71
85
  - nath.e.will@gmail.com
@@ -75,6 +89,7 @@ extra_rdoc_files: []
75
89
  files:
76
90
  - ".gitignore"
77
91
  - ".rspec"
92
+ - ".rubocop.yml"
78
93
  - ".travis.yml"
79
94
  - Gemfile
80
95
  - LICENSE.txt