Class: Do::Systemd::SystemRaw
- Inherits:
-
Object
- Object
- Do::Systemd::SystemRaw
- Defined in:
- lib/do/systemd.rb
Instance Method Summary collapse
-
#initialize(args, opts) ⇒ SystemRaw
constructor
A new instance of SystemRaw.
- #success? ⇒ Boolean
Constructor Details
#initialize(args, opts) ⇒ SystemRaw
Returns a new instance of SystemRaw.
204 205 206 207 |
# File 'lib/do/systemd.rb', line 204 def initialize(args, opts) @args = args @ok = system(*args, **opts) end |
Instance Method Details
#success? ⇒ Boolean
209 210 211 |
# File 'lib/do/systemd.rb', line 209 def success? @ok end |