Method: Sudo::System.unlink
- Defined in:
- lib/sudo/system.rb
.unlink(file) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/sudo/system.rb', line 26 def unlink(file) if file and File.exist? file system("sudo", "rm", "-f", file) or raise(FileStillExists, "Couldn't delete #{file}") end end |