protected override void ProcessRecord() { _workingFolder = _workingFolder ?? CurrentProviderLocation("FileSystem").ProviderPath; var deployArguments = new DeployArguments( string.IsNullOrWhiteSpace(_workingFolder) ? null : _workingFolder, string.IsNullOrWhiteSpace(DeploymentFilePath) ? null : DeploymentFilePath, string.IsNullOrWhiteSpace(ServerInstance) ? null : ServerInstance, string.IsNullOrWhiteSpace(Catalog) ? null : Catalog, string.IsNullOrWhiteSpace(Folder) ? null : Folder, string.IsNullOrWhiteSpace(ProjectName) ? null : ProjectName, string.IsNullOrWhiteSpace(ProjectPassword) ? null : ProjectPassword, EraseSensitiveInfo, string.IsNullOrWhiteSpace(ServerInstanceUserID) ? null : ServerInstanceUserID, string.IsNullOrWhiteSpace(ServerInstancePassword) ? null : ServerInstancePassword ); _deployer = _deployer ?? new Deployer(); try { _deployer.Deploy(deployArguments); } catch (Exception e) { Console.WriteLine(e.Message); throw; } }
public void Publish(string WorkingFolder) { var deployArguments = new DeployArguments( WorkingFolder, string.IsNullOrWhiteSpace(DeploymentFilePath) ? null : DeploymentFilePath, string.IsNullOrWhiteSpace(ServerInstance) ? null : ServerInstance, string.IsNullOrWhiteSpace(Catalog) ? null : Catalog, string.IsNullOrWhiteSpace(Folder) ? null : Folder, string.IsNullOrWhiteSpace(ProjectName) ? null : ProjectName, string.IsNullOrWhiteSpace(ProjectPassword) ? null : ProjectPassword, EraseSensitiveInfo, string.IsNullOrWhiteSpace(ServerInstanceUserID) ? null : ServerInstanceUserID, string.IsNullOrWhiteSpace(ServerInstancePassword) ? null : ServerInstancePassword ); _deployer = _deployer ?? new Deployer(); try { _deployer.Deploy(deployArguments); } catch (Exception e) { Console.WriteLine(e.Message); throw; } }
public void Deploy() { var model = SPMeta2Model.NewSiteModel(site => { site.AddTaxonomyTermStore(GetDefaultSiteTermStore(), termStore => { termStore.AddTaxonomyTermGroup(GetVladTestGroup(), group => { group .AddTaxonomyTermSet(GetDepartmentTermSet(), termSet => { termSet.AddTaxonomyTerms(GetDepartmentTaxonomyTerms()); }) .AddTaxonomyTermSet(GetProjectDocumentTypeTermSet(), termSet => { termSet.AddTaxonomyTerms(GetProjectDocumentTypeTerms()); }) .AddTaxonomyTermSet(GetProjectStatusTermSet(), termSet => { termSet.AddTaxonomyTerms(GetProjectStatusTerms()); }); }); }); }); siteDeployer.Deploy(context, model); }
public async Task <Result> Deploy(Deployment settings) { Log.Information("Operation started"); var publishDirectory = publisher.Publish(settings.ProjectPath, settings.Settings.Architecture, settings.Settings.Framework, settings.BuildConfiguration); return(await publishDirectory.Bind(dir => deployer.Deploy(dir, settings))); }
public async Task Deploy(Deployment settings) { Log.Information("Operation started"); var publishDirectory = publisher.Publish(settings.ProjectPath, settings.Settings.TargetDevice, settings.Settings.Framework, settings.BuildConfiguration); await deployer.Deploy(publishDirectory, settings); Log.Information("Operation finished"); }
public void Import(string SharePointSiteUrl, string SharePointUserName, string SharePointPassword, string ImportConfigPath, string TemplateRootFolder) { IOC.Register(); container = IOC.GetContainer(); IJsonConverter converter = container.GetInstance <IJsonConverter>(); var mapped = converter.GetConfiguration(ImportConfigPath); IDeployer deployer = container.GetInstance <IDeployer>(); deployer.Deploy(mapped, TemplateRootFolder, SharePointSiteUrl, SharePointUserName, SharePointPassword); }
public void Deploy(IApplication application) { try { helper.Deploy(application); } catch (Exception e) { ex = e; sync.Release(); } sync.Release(); }
internal static void MainInternal(IDeployer deployer, string[] args) { try { var deployArguments = ParseCommandLineArguments(args); deployer.Deploy(deployArguments); } catch (Exception e) { Console.WriteLine($"ERROR: {e.Message}"); if (e is CommandLineParsingException || e is DeployArgumentsValidationException) { Usage(); } throw; } }
public void Deploy() { Create(); var model = SPMeta2Model.NewWebModel(site => { site .AddTaxonomyFields(GetTaxonomyFields()) .AddDateTimeFields(GetDateTimeFields()) .AddUserFields(GetUserFields()) .AddNoteFields(GetNoteFields()) .AddContentType(projectContemtType, contentType => { contentType.AddContentTypeFieldLinks(GetAllFields()); }) .AddList(projectsList, list => { list .AddContentTypeLink(projectContemtType) .AddListView(managedProjectsListView); }); }); webDeployer.Deploy(context, model); }
public void Deploy(string id) { IDeployer deployer = _deployerFactory.CreateDeployer(); deployer.Deploy(id); }