I hereby claim:
- I am x-a-n-d-e-r-k on github.
- I am xanderk (https://keybase.io/xanderk) on keybase.
- I have a public key ASDmdq38m-AhrNml9MaUnnE7g-mzmhOoYHo-0qDHBfAdcQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| using System; | |
| using System.ComponentModel; | |
| using System.Data; | |
| using System.Data.Common; | |
| public static class DbReaderExtensions { | |
| public static string SafeGetString(this DbDataReader reader, string columnName) { | |
| var index = reader.GetOrdinal(columnName); | |
| return !reader.IsDBNull(index) ? reader.GetString(index) : string.Empty; |
| Import-Module WebAdministration | |
| $port = 80 | |
| $ssl = $false | |
| $wa = Get-Website | Where {$_.Name -eq $OctopusWebSiteName} | |
| $ap = Get-WebAppPoolState | Where {$_.Name -eq $appPoolName} | |
| if($wa -eq $null) |