dbus-systemd 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,3 +1,23 @@
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
23
  module Mixin
@@ -1,2 +1,22 @@
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 'networkd/manager'
2
22
  require_relative 'networkd/link'
@@ -1,3 +1,23 @@
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 '../mixin'
2
22
  require_relative 'manager'
3
23
 
@@ -5,14 +25,14 @@ module DBus
5
25
  module Systemd
6
26
  module Networkd
7
27
  class Link
8
- INTERFACE = 'org.freedesktop.network1.Link'
28
+ INTERFACE = 'org.freedesktop.network1.Link'.freeze
9
29
 
10
30
  include Systemd::Mixin::MethodMissing
11
31
  include Systemd::Mixin::Properties
12
32
 
13
33
  def initialize(id, manager = Manager.new)
14
34
  @object = manager.service.object("#{Manager::NODE}/link/#{id}")
15
- .tap(&:introspect)
35
+ .tap(&:introspect)
16
36
  end
17
37
  end
18
38
  end
@@ -1,3 +1,23 @@
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 '../helpers'
2
22
  require_relative '../mixin'
3
23
  require_relative 'link'
@@ -5,11 +25,11 @@ require_relative 'link'
5
25
  module DBus
6
26
  module Systemd
7
27
  module Networkd
8
- INTERFACE = 'org.freedesktop.network1'
28
+ INTERFACE = 'org.freedesktop.network1'.freeze
9
29
 
10
30
  class Manager
11
- NODE = '/org/freedesktop/network1'
12
- INTERFACE = 'org.freedesktop.network1.Manager'
31
+ NODE = '/org/freedesktop/network1'.freeze
32
+ INTERFACE = 'org.freedesktop.network1.Manager'.freeze
13
33
 
14
34
  include Systemd::Mixin::MethodMissing
15
35
  include Systemd::Mixin::Properties
@@ -1,4 +1,24 @@
1
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
+ #
21
+ #
2
22
  # See docs for full API description:
3
23
  # https://www.freedesktop.org/wiki/Software/systemd/resolved/
4
24
  #
@@ -1,3 +1,23 @@
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 '../mixin'
2
22
  require_relative 'manager'
3
23
 
@@ -5,7 +25,7 @@ module DBus
5
25
  module Systemd
6
26
  module Resolved
7
27
  class Link
8
- INTERFACE = 'org.freedesktop.resolve1.Link'
28
+ INTERFACE = 'org.freedesktop.resolve1.Link'.freeze
9
29
 
10
30
  include Systemd::Mixin::MethodMissing
11
31
  include Systemd::Mixin::Properties
@@ -13,7 +33,7 @@ module DBus
13
33
  def initialize(id, manager = Manager.new)
14
34
  link_path = manager.GetLink(id).first
15
35
  @object = manager.service.object(link_path)
16
- .tap(&:introspect)
36
+ .tap(&:introspect)
17
37
  end
18
38
  end
19
39
  end
@@ -1,3 +1,23 @@
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 '../helpers'
2
22
  require_relative '../mixin'
3
23
  require_relative 'link'
@@ -5,11 +25,11 @@ require_relative 'link'
5
25
  module DBus
6
26
  module Systemd
7
27
  module Resolved
8
- INTERFACE = 'org.freedesktop.resolve1'
28
+ INTERFACE = 'org.freedesktop.resolve1'.freeze
9
29
 
10
30
  class Manager
11
- NODE = '/org/freedesktop/resolve1'
12
- INTERFACE = 'org.freedesktop.resolve1.Manager'
31
+ NODE = '/org/freedesktop/resolve1'.freeze
32
+ INTERFACE = 'org.freedesktop.resolve1.Manager'.freeze
13
33
 
14
34
  include Systemd::Mixin::MethodMissing
15
35
  include Systemd::Mixin::Properties
@@ -1,11 +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 'helpers'
2
22
  require_relative 'mixin'
3
23
 
4
24
  module DBus
5
25
  module Systemd
6
26
  class Timedated
7
- NODE = '/org/freedesktop/timedate1'
8
- INTERFACE = 'org.freedesktop.timedate1'
27
+ NODE = '/org/freedesktop/timedate1'.freeze
28
+ INTERFACE = 'org.freedesktop.timedate1'.freeze
9
29
 
10
30
  include Mixin::MethodMissing
11
31
  include Mixin::Properties
@@ -1,10 +1,30 @@
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 'manager'
2
22
  require_relative 'mixin'
3
23
 
4
24
  module DBus
5
25
  module Systemd
6
26
  class Unit
7
- INTERFACE = 'org.freedesktop.systemd1.Unit'
27
+ INTERFACE = 'org.freedesktop.systemd1.Unit'.freeze
8
28
 
9
29
  include Mixin::MethodMissing
10
30
  include Mixin::Properties
@@ -12,7 +32,7 @@ module DBus
12
32
  def initialize(name, manager = Manager.new)
13
33
  unit_path = manager.GetUnit(name).first
14
34
  @object = manager.service.object(unit_path)
15
- .tap(&:introspect)
35
+ .tap(&:introspect)
16
36
  end
17
37
  end
18
38
  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 Automount < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Automount'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Automount < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Automount'.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 Device < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Device'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Device < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Device'.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 Mount < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Mount'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Mount < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Mount'.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 Path < Unit
6
- INTERFACE = 'org.freedesktop.systemd1.Path'
23
+ module DBus
24
+ module Systemd
25
+ class Unit
26
+ class Path < Unit
27
+ INTERFACE = 'org.freedesktop.systemd1.Path'.freeze
28
+ end
7
29
  end
8
30
  end
9
31
  end