This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Powershell.
Summary
The settings used when running powershell processes.
- Assembly
- Cake
.Powershell .dll - Namespace
- Cake
.Powershell - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["PowershellSettings"]
class Type type-node
Syntax
public class PowershellSettings
Constructors
| Name | Summary |
|---|---|
| PowershellSettings |
Initializes a new instance of the PowershellSettings class.
|
Properties
| Name | Value | Summary |
|---|---|---|
| Arguments | Process |
Gets or sets the set of command-line arguments to use when starting the application.
|
| Authentication |
Authentication |
Gets or sets the authentication mechanism to use when connecting
|
| Bypass |
bool |
Bypass Execution Policy if true
|
| ComputerName | string |
Gets or sets optional computer name to run the process on
|
| Exception |
bool |
If true script execution which have errors will throw exception, If false it will return result. Default: true
|
| FormatOutput | bool |
If the powershell output should be a formatted string
|
| LogOutput | bool |
Log the powershell output
|
| Modules | IList |
Gets or sets the modules to load into the initial state
|
| OutputToAppConsole | bool |
If the host should output to the app's console
|
| Password | string |
Gets or sets the credentials to use when connecting
|
| Port | int |
Gets or sets the remote port to connect on
|
| Timeout | Nullable |
Gets or sets optional timeout for process execution
|
| UseDotSourcing | bool |
Gets or sets a value indicating to use dot sourcing when executing scripts.
|
| Username | string |
Gets or sets the credentials to use when connecting
|
| WorkingDirectory | DirectoryPath |
Gets or sets the working directory for the process to be started.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| Bypass |
PowershellSettings |
Sets a value indicating whether security should be set to unrestricted.
Requires the Cake.Powershell addin
|
| Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
| IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
| OutputToAppConsole |
PowershellSettings |
Sets a value indicating whether the output of an application is written to its on-screen console.
Requires the Cake.Powershell addin
|
| SetFormatOutput |
PowershellSettings |
Sets a value indicating whether the output of an application should be formatted as text
Requires the Cake.Powershell addin
|
| SetLogOutput |
PowershellSettings |
Sets a value indicating whether the output of an application is written to the cake console
Requires the Cake.Powershell addin
|
| SetTimeout |
PowershellSettings |
Sets the optional timeout for powershell command
Requires the Cake.Powershell addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
| Use |
PowershellSettings |
Sets the authentication mechanism to use when connecting
Requires the Cake.Powershell addin
|
| UseComputerName |
PowershellSettings |
Sets the computer name to connect to
Requires the Cake.Powershell addin
|
| UsePassword |
PowershellSettings |
Gets or sets the credentials to use when connecting
Requires the Cake.Powershell addin
|
| UsePort |
PowershellSettings |
Sets the remote port to connect on.
Requires the Cake.Powershell addin
|
| UseUsername |
PowershellSettings |
Gets or sets the credentials to use when connecting
Requires the Cake.Powershell addin
|
| UseWorkingDirectory |
PowershellSettings |
Sets the working directory for the process to be started.
Requires the Cake.Powershell addin
|
| WithArguments |
PowershellSettings |
Sets the arguments for the powershell command
Requires the Cake.Powershell addin
|
| WithDotSourcing |
PowershellSettings |
Executes scripts using dot sourcing
Requires the Cake.Powershell addin
|
| WithModule |
PowershellSettings |
Adds the specified module to load into the initial state
Requires the Cake.Powershell addin
|
