Permalink
Browse files

added scoop

  • Loading branch information...
1 parent 571c850 commit a5a4f5b4a779252721da3386f9cfd3de7ed056cf @richorama committed Nov 6, 2013
Binary file not shown.
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<configuration>
+ <startup useLegacyV2RuntimeActivationPolicy="true">
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
+ </startup>
+</configuration>
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
powershell -command "Set-ExecutionPolicy Unrestricted"
-powershell -command "iex (new-object net.webclient).downloadstring('https://get.scoop.sh')" > install.log
-ExecuteMultipleCommand.exe "scoop install" Scoop.CommaSeparatedPackageList > ScoopInstall.ps1
+powershell ./install.ps1 > install.log
+ExecuteMultipleCommand.exe "C:\Applications\appdata\local\scoop\shims\scoop.ps1 install" Scoop.CommaSeparatedPackageList ScoopInstall.ps1
exit /b 0
@@ -0,0 +1,2 @@
+(get-psprovider 'FileSystem').Home = 'c:\applications\'
+iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
@@ -0,0 +1,17 @@
+Installs the Scoop package manager for Windows.
+
+ http://scoop.sh/
+
+Supply a comma separated list of package names, which Scoop will install on machine startup.
+
+ Scoop.CommaSeparatedPackageList
+
+i.e. "ruby, 7zip, git"
+
+Scoop is installed here:
+
+ C:\Applications\appdata\local\scoop\shims\scoop.ps1
+
+** WARNING **
+This plugin requires Windows Server 2012.
+Set osFamily = 3 in ServiceConfiguration.Cloud.cscfg.
@@ -1,2 +1,4 @@
+setlocal
+set PATH=C:\Applications\appdata\local\scoop\shims;%PATH%
powershell -command "Set-ExecutionPolicy Unrestricted"
powershell .\ScoopInstall.ps1 > start.log
@@ -35,7 +35,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Binary file not shown.
@@ -35,7 +35,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="System" />
@@ -1,5 +1,6 @@
using System;
using Microsoft.WindowsAzure.ServiceRuntime;
+using System.IO;
namespace ExecuteMultipleCommand
{
@@ -12,18 +13,29 @@ static void Main(string[] args)
Console.WriteLine("Please specify the command and the setting name containing the arguments");
}
- string command = args[0];
- string setting = args[1];
+ var command = args[0];
+ var setting = args[1];
+ var outputFile = "";
+ if (args.Length >= 3)
+ {
+ outputFile = args[2];
+ }
var value = RoleEnvironment.GetConfigurationSettingValue(setting);
if (string.IsNullOrWhiteSpace(value))
{
return;
}
var values = value.Split(',', ';');
+ var output = @"(get-psprovider 'FileSystem').Home = 'c:\applications\'" + "\r\n";
foreach (var item in values)
{
Console.WriteLine("{0} {1}", command, item.Trim());
+ output += string.Format("{0} {1}\r\n", command, item.Trim());
+ }
+ if (!string.IsNullOrWhiteSpace(outputFile))
+ {
+ File.WriteAllText(outputFile, output);
}
}
@@ -35,7 +35,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />

0 comments on commit a5a4f5b

Please sign in to comment.