Method: RightConf::Command#sudo
- Defined in:
- lib/rconf/command.rb
#sudo(*args) ⇒ Object
Execute given command with given arguments using ‘sudo’
Parameters
- command(String)
-
Command to run
- args(Array)
-
Command arguments
Return
- result(CommandResult)
-
Result of execution (output and exit status)
79 80 81 82 |
# File 'lib/rconf/command.rb', line 79 def sudo(*args) args = args.unshift('/usr/bin/sudo') Command.execute(*args) end |