Method: PSWindows::Exec#rm_rf
- Defined in:
- lib/beaker/host/pswindows/exec.rb
#rm_rf(path) ⇒ Object
22 23 24 25 26 |
# File 'lib/beaker/host/pswindows/exec.rb', line 22 def rm_rf path # ensure that we have the right slashes for windows path = path.gsub(/\//, '\\') execute("del /s /q #{path}") end |