Sha256: 1185a4933fa4305ae0aaf34da470b03a599cdfbef592e02d99f2e0b75a906ffc
Contents?: true
Size: 402 Bytes
Versions: 24
Compression:
Stored size: 402 Bytes
Contents
module VagrantWindows module Guest module Cap class ChangeHostName def self.change_host_name(machine, name) #### on windows, renaming a computer seems to require a reboot machine.communicate.execute( "wmic computersystem where name=\"%COMPUTERNAME%\" call rename name=\"#{name}\"", :shell => :cmd) end end end end end
Version data entries
24 entries across 24 versions & 2 rubygems