Method: Locd::Launchctl.execute!

Defined in:
lib/locd/launchctl.rb

.execute!(*args) ⇒ Cmds::Result

Just like #execute but will raise if the exit status is not 0.

Parameters:

  • subcmd (Symbol | String)

    Subcommand to run, like :load.

  • *args (Array<String>)

    Positional args, will be added on end of command.

  • **opts (Hash<Symbol, V>)

    Options, will be added between subcommand and positional args.

    Keys are mapped via map_opts.

Returns:

  • (Cmds::Result)


144
145
146
# File 'lib/locd/launchctl.rb', line 144

def self.execute! *args
  execute( *args ).assert
end