Skip to content

Instantly share code, notes, and snippets.

Created June 17, 2015 23:37
Show Gist options
  • Save anonymous/9329c24a2a8972a34418 to your computer and use it in GitHub Desktop.
Save anonymous/9329c24a2a8972a34418 to your computer and use it in GitHub Desktop.
require 'vagrant'
module VagrantPlugins
module CommunicatorWinRM
class Communicator < Vagrant.plugin("2", :communicator)
def sudo(command, opts={}, &block)
puts "patched"
opts[:error_check] = false
execute command, opts, &block
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment