public void Publish( [Argument("site", "s", Description = "The root http address of the website copy.")] string site) { using (SitePublisher index = new SitePublisher(StoragePath(site), site)) { GetClientPassword(index); index.Publish(); } }
public void PublishTo( [Argument("site", "s", Description = "The root http address of the website copy.")] string siteToPublish, [Argument("host", "h", Description = "The root http address of the target website host.")] string destinationUrl) { using (SitePublisher index = new SitePublisher(StoragePath(siteToPublish), siteToPublish)) { GetClientPassword(index); index.Publish(new Uri(destinationUrl, UriKind.Absolute)); } }