in lib/taste_tester/host.rb [222:265]
def add_windows_test_cmds(transport, serialized_config)
if logger.level == Logger::DEBUG
transport << 'Set-PSDebug -trace 1'
end
ttconfig =
"#{TasteTester::Config.chef_config_path}/#{TASTE_TESTER_CONFIG}"
realconfig = "#{TasteTester::Config.chef_config_path}/" +
TasteTester::Config.chef_config
[
create_eventlog_if_needed_cmd,
'Write-EventLog -LogName "Application" -Source "taste-tester" ' +
'-EventID 1 -EntryType Information ' +
"-Message \"Moving server into taste-tester for #{@user}\"",
touchcmd,
"$b64 = \"#{serialized_config}\"",
"$ttconfig = \"#{ttconfig}\"",
"$realconfig = \"#{realconfig}\"",
'$tmp64 = (New-TemporaryFile).name',
'$tmp = (New-TemporaryFile).name',
'$b64 | Out-File -Encoding ASCII $tmp64 -Force',
"#{win_rm_f} $tmp",
'certutil -decode $tmp64 $tmp',
'mv $tmp $ttconfig -Force',
'New-Item -ItemType SymbolicLink -Value $ttconfig $realconfig -Force',
].each do |cmd|
transport << cmd
end
end