protected override void BeginProcessing() { // Create a repository story (the PSResourceRepository.xml file) if it does not already exist // This is to create a better experience for those who have just installed v3 and want to get up and running quickly RepositorySettings.CheckRepositoryStore(); _installHelper = new InstallHelper(cmdletPassedIn: this); }
protected override void BeginProcessing() { if (Proxy != null || ProxyCredential != null) { ThrowTerminatingError(new ErrorRecord( new PSNotImplementedException("Proxy and ProxyCredential are not yet implemented. Please rerun cmdlet with other parameters."), "ParametersNotImplementedYet", ErrorCategory.NotImplemented, this)); } RepositorySettings.CheckRepositoryStore(); }
protected override void BeginProcessing() { // Create a repository story (the PSResourceRepository.xml file) if it does not already exist // This is to create a better experience for those who have just installed v3 and want to get up and running quickly RepositorySettings.CheckRepositoryStore(); // If the user does not specify a path to save to, use the user's current working directory if (string.IsNullOrWhiteSpace(_path)) { _path = SessionState.Path.CurrentLocation.Path; } _installHelper = new InstallHelper(cmdletPassedIn: this); }
protected override void BeginProcessing() { // Create a repository story (the PSResourceRepository.xml file) if it does not already exist // This is to create a better experience for those who have just installed v3 and want to get up and running quickly RepositorySettings.CheckRepositoryStore(); _pathsToInstallPkg = Utils.GetAllInstallationPaths(this, Scope); _cancellationTokenSource = new CancellationTokenSource(); _findHelper = new FindHelper( cancellationToken: _cancellationTokenSource.Token, cmdletPassedIn: this); _installHelper = new InstallHelper(cmdletPassedIn: this); }
protected override void BeginProcessing() { try { WriteDebug("Calling API to check repository store exists in non-corrupted state"); RepositorySettings.CheckRepositoryStore(); } catch (PSInvalidOperationException e) { ThrowTerminatingError(new ErrorRecord( new PSInvalidOperationException(e.Message), "RepositoryStoreException", ErrorCategory.ReadError, this)); } }
protected override void BeginProcessing() { RepositorySettings.CheckRepositoryStore(); }