예제 #1
0
 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();
     }
 }
예제 #2
0
 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));
     }
 }