Created
February 16, 2011 08:51
-
-
Save refractalize/829053 to your computer and use it in GitHub Desktop.
Proposed API for multi-stage deployments in Bounce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultiStage { | |
[Targets] | |
public static object GetTargets (IParameters parameters) { | |
var archive = new Archive( | |
parameters.Default("archive", false), | |
"archive" | |
); | |
var solution = new VisualStudioSolution { | |
SolutionPath = @"C:\dev\BigWebSite.sln", | |
}; | |
var webServiceDirectory = archive.Begin( | |
"WebSite", | |
solution.Projects["WebSite"].ProjectDirectory | |
); | |
var hostedDirectory = new Copy { | |
FromPath = webServiceDirectory, | |
ToPath = @"c:\webs\WebSite", | |
}; | |
var webSite = new Iis7WebSite { | |
Name = "WebSite", | |
Directory = hostedDirectory.ToPath, | |
}; | |
return new { | |
Service = archive.End(webSite), | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment