lib/vagrant-orchestrate/command/command_mixins.rb
# Delete a file in a way that works on windows
Delete a file in a way that works on windows
Delete a file in a way that works on windows
def super_delete(filepath)
          10.times do
            begin
              File.delete(filepath)
              break
            rescue
              @logger.warn("Unable to delete file #{filepath}")
              sleep 0.05
            end
          end
        end
def super_delete ( filepath ) 10 . times do begin File . delete ( filepath ) break rescue @logger . warn ( "Unable to delete file #{filepath}" ) sleep 0.05 end end end
Delete a file in a way that works on windows
Delete a file in a way that works on windows
# Thanks, Windows. http://alx.github.io/2009/01/27/ruby-wundows-unlink.html
filepath