Method: Windows::Exec#mv
- Defined in:
- lib/beaker/host/windows/exec.rb
#mv(orig, dest, rm = true) ⇒ Object
Move the origin to destination. The destination is removed prior to moving.
142 143 144 145 |
# File 'lib/beaker/host/windows/exec.rb', line 142 def mv orig, dest, rm = true rm_rf dest unless !rm execute("mv \"#{orig}\" \"#{dest}\"") end |