Class: Do::Systemd::SystemRaw

Inherits:
Object
  • Object
show all
Defined in:
lib/do/systemd.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


209
210
211
# File 'lib/do/systemd.rb', line 209

def success?
  @ok
end