[tarantino] r166 committed - - Tweaked Tarantino deployer console to allow deployment of current (u...

1 view
Skip to first unread message

codesite...@google.com

unread,
Jan 10, 2011, 12:23:39 PM1/10/11
to tarantino...@googlegroups.com
Revision: 166
Author: kwhurwitz
Date: Mon Jan 10 09:23:24 2011
Log: - Tweaked Tarantino deployer console to allow deployment of current
(unknown version)
- Tweaked Tarantino deployer console configuration to allow execution
http://code.google.com/p/tarantino/source/detail?r=166

Modified:
/trunk/src/Tarantino.Deployer.Console/Program.cs
/trunk/src/Tarantino.Deployer.Console/Tarantino.Deployer.Console.csproj
/trunk/src/Tarantino.Deployer.Infrastructure/PackageDownloader.cs

=======================================
--- /trunk/src/Tarantino.Deployer.Console/Program.cs Sat Jan 8 11:43:27
2011
+++ /trunk/src/Tarantino.Deployer.Console/Program.cs Mon Jan 10 09:23:24
2011
@@ -65,6 +65,10 @@
versionNumber = lastCertified.Version;
}
}
+ else if (requestedVersion == "Current")
+ {
+ versionNumber = null;
+ }

var result =
PackageDownloader.DownloadAndExtract(selectedApplication.Name,
selectedEnvironment.Name, versionNumber,

selectedApplication.Url, selectedApplication.ZipFile,
=======================================
--- /trunk/src/Tarantino.Deployer.Console/Tarantino.Deployer.Console.csproj
Sat Jan 8 05:21:14 2011
+++ /trunk/src/Tarantino.Deployer.Console/Tarantino.Deployer.Console.csproj
Mon Jan 10 09:23:24 2011
@@ -114,6 +114,16 @@
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="deployer.hibernate.cfg.xml">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config">
+ <SubType>Designer</SubType>
+ </None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the
targets below and uncomment it.
=======================================
--- /trunk/src/Tarantino.Deployer.Infrastructure/PackageDownloader.cs Sat
Jan 8 11:43:27 2011
+++ /trunk/src/Tarantino.Deployer.Infrastructure/PackageDownloader.cs Mon
Jan 10 09:23:24 2011
@@ -37,7 +37,8 @@
Credentials = new NetworkCredential(username, password)
};

- client.DownloadFile(downloadUrl + "/" + version + "/" + zipFile
+ ".zip", fullZipFile);
+ var fullUrl = downloadUrl + "/" + version + "/" + zipFile + ".zip";
+ client.DownloadFile(fullUrl, fullZipFile);

Directory.CreateDirectory(applicationDirectory);

Reply all
Reply to author
Forward
0 new messages