By @dylanmei
This works for me. Maybe there's something here for you as well.
in template.json, simplified
...
"provisioners": [{
"type": "file",
"source": "./puppet",
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using TweetSharp; | |
| namespace tweet_sharp_streaming | |
| { |
| /// <summary> | |
| /// Invokes FibPro and returns a string of the standard output | |
| /// </summary> | |
| /// <param name="args"></param> | |
| /// <returns></returns> | |
| private FibProOutput FibPro(string args, string interactiveInput = null) | |
| { | |
| var output = new StringBuilder(); | |
| var error = new StringBuilder(); | |
| var resultCode = 0; |
| # Clear Umbraco Cache | |
| # | |
| # Simulates a set of HTTP requests that a normal use would do to log into umbraco and clear the global site cache (republish the root node) | |
| # | |
| # == Usage == | |
| # .\clear-umbraco-cache.ps1 -HostName Hostname -User Username -Pass Password [-UseSsl $false] | |
| # | |
| # == Params == | |
| # Hostname: Hostname of the server running umbraco | |
| # User / Pass: Valid credentials for an Umbraco User |
| # Purge Akamai Cache | |
| # | |
| # Invokes the Akamai REST Api to purge the cache for the given objects | |
| # | |
| # == Usage == | |
| # .\purge-akamai-cache.ps1 -CpCode cpcode -User Username -Pass Password | |
| # | |
| # == Params == | |
| # CpCodes: comma separated list of cpcodes of the site to purge | |
| # User / Pass: Valid credentials for an Akamai User that has permissions to purge cache |
| @echo off | |
| SETLOCAL ENABLEDELAYEDEXPANSION | |
| :: set the working dir (default to current dir) | |
| set wdir=%cd% | |
| if not (%1)==() set wdir=%1 | |
| echo executing transform_all from %wdir% | |
| :: create a list of all the T4 templates in the working dir | |
| dir %wdir%\*.tt /b /s > t4list.txt |
| param ([Parameter(Mandatory=$True)][string]$SitemapUrl, | |
| [int]$Max=0) | |
| function Validate($url) { | |
| if(-not $url.StartsWith("http")) { | |
| $parsed = [System.Uri]$SitemapUrl | |
| $url = "{0}://{1}{2}" -f $parsed.Scheme, $parsed.Host, $url | |
| } |
By @dylanmei
This works for me. Maybe there's something here for you as well.
in template.json, simplified
...
"provisioners": [{
"type": "file",
"source": "./puppet",
| $windowsFeatures = @( | |
| 'Web-Server', | |
| 'Web-WebServer', | |
| 'Web-Mgmt-Console', | |
| 'Web-Mgmt-Tools' | |
| ); | |
| Install-WindowsFeature -Name $windowsFeatures | |
| #Workaround for IIS Permissions Issues |
| using System; | |
| using System.Collections.Generic; | |
| using System.Configuration; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Runtime.Remoting.Messaging; | |
| namespace Website.Tests.UI | |
| { | |
| public static class Config |
| <select name="ext"> | |
| <option value="2000.hu">2000.hu</option> | |
| <option value="6bone.pl">6bone.pl</option> | |
| <option value="aa.no">aa.no</option> | |
| <option value="aarborte.no">aarborte.no</option> | |
| <option value="ab.ca">ab.ca</option> | |
| <option value="ab.se">ab.se</option> | |
| <option value="abo.pa">abo.pa</option> | |
| <option value="ac">ac</option> | |
| <option value="ac.ae">ac.ae</option> |