/// <summary> /// Constructor /// </summary> public Deployer(List <DeployRule> deployRules, ProEnvironment.ProEnvironmentObject proEnv) { _compileLocally = proEnv.CompileLocally; _deploymentDirectory = proEnv.BaseCompilationPath; ProlibPath = proEnv.ProlibPath; DeployRules = deployRules.ToNonNullList(); DeployVarList = DeployRules.OfType <DeployVariableRule>().ToNonNullList(); }
/// <summary> /// Constructor /// </summary> public Deployer(List <DeployRule> deployRules, ProEnvironment.ProEnvironmentObject proEnv) { _compileLocally = proEnv.CompileLocally; _deploymentDirectory = proEnv.BaseCompilationPath; _sourceDirectory = (string.IsNullOrEmpty(proEnv.BaseLocalPath) ? "" : Path.GetFullPath(proEnv.BaseLocalPath).TrimEnd('\\')); _compressionLevel = CompressionLevel.Normal; _compileUnmatchedProgressFilesToDeployDir = true; ProlibPath = proEnv.ProlibPath; DeployRules = deployRules.ToNonNullList(); DeployVarList = DeployRules.OfType <DeployVariableRule>().ToNonNullList(); }