windows_tunnel_cmd

in lib/taste_tester/tunnel.rb [97:139]


    def windows_tunnel_cmd
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      <<~EOS
      $ts = "#{TasteTester::Config.timestamp_file}"
      echo $PID | Out-File -Encoding ASCII "$ts"
      
      (Get-Item "$ts").LastWriteTime=("#{TasteTester::Config.testing_end_time}")

      while ($true) {
        if (-Not (Test-Path $ts)) {
          
          $splat = @{
            LogName = "Application"
            Source = "taste-tester"
            EventID = 5
            EntryType = "Information"
            Message = "Ending tunnel: timestamp file disappeared"
          }
          Write-EventLog @splat
          break
        }
        sleep 60
      }
      done
      EOS
    end