Skip to content

Instantly share code, notes, and snippets.

@refractalize
Created February 16, 2011 08:51
Show Gist options
  • Save refractalize/829053 to your computer and use it in GitHub Desktop.
Save refractalize/829053 to your computer and use it in GitHub Desktop.
Proposed API for multi-stage deployments in Bounce
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