public WorkspaceCodeFileDestination(IPipelineWorkspaceManagers workspaces, string path)
        {
            this.workspaces = workspaces;
            this.path       = path;
            var parts = this.path.Split('/');

            this.pathParts   = parts.Skip(1).ToArray();
            this.projectName = parts[0];
        }
Ejemplo n.º 2
0
        private IBuilderProvider GetBuilderProvider(IPipelineWorkspaceManagers workspaces, string basePath)
        {
            BuilderRegistry result = new BuilderRegistry();

            result.Register <ICodeFileDestination>(new WorkspaceCodeFileDestinationBuilder(workspaces));
            result.Register <ICodeFileDestination>(new FileSystemCodeFileDestinationBuilder(this.fileSystem, basePath), "fileSystem");
            result.Register <ICodeFileSelector>(new CodeFileSelectorBuilder());

            return(result);
        }
Ejemplo n.º 3
0
 public PipelineBuilder(
     IBuilderProvider builderProvider,
     IPipelineWorkspaceManagers workspaceManagers,
     string basePath,
     IFileSystem fileSystem,
     ITypeLoader typeLoader,
     ILogger logger)
 {
     this.builderProvider   = builderProvider;
     this.workspaceManagers = workspaceManagers;
     this.basePath          = basePath;
     this.fileSystem        = fileSystem;
     this.typeLoader        = typeLoader;
     this.logger            = logger;
 }
 public WorkspaceCodeFileDestinationBuilder(IPipelineWorkspaceManagers workspaces)
 {
     this.workspaces = workspaces;
 }