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.

Parameters:

  • orig (String)

    The origin path

  • dest (String)

    the destination path

  • rm (Boolean) (defaults to: true)

    Remove the destination prior to move



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