public SkipToLabelIfRegex() : base() { TestString = "[TargetPath]\\[TargetName]"; RegexFilter = "*"; SkipToLabel = "End"; ExecutionMode = ExecuteOn.ForwardExecution; }
public SkipToLabelIfFileFilter() : base() { FileName = "[TargetName]"; FileFilter = "*"; SkipToLabel = "End"; ExecutionMode = ExecuteOn.ForwardExecution; }
public DeleteFiles() : base() { Retry = 1; RetryDelaySeconds = 2; FileList = new List <string>(); ExecutionMode = ExecuteOn.ForwardExecution; }
public DeleteDirectory() : base() { Retry = 1; RetryDelaySeconds = 2; ExpandSource = false; SourcePath = "[TargetPath]"; DirectoryFilter = "[TargetName]"; DeleteEmptyDirectoriesOnly = true; RecurseSource = false; ExecutionMode = ExecuteOn.ForwardExecution; }
public Delete() : base() { Authentication = new Authentication(); Retry = 1; RetryDelaySeconds = 2; ExpandSource = false; SourcePath = "[TargetPath]"; FileFilter = "[TargetName]"; DirectoryFilter = "!TEMP"; RecurseSource = false; ExecutionMode = ExecuteOn.ForwardExecution; }
public DeleteDirectory() : base() { Authentication = new Authentication(); ServerAddress = "[SshServerAddress]"; Port = "[SshServerPort]"; Retry = 1; RetryDelaySeconds = 2; ExpandSource = false; SourcePath = "[TargetPath]"; DirectoryFilter = "[TargetName]"; DeleteEmptyDirectoriesOnly = true; RecurseSource = false; ExecutionMode = ExecuteOn.ForwardExecution; }
private FileInfo GetExecutable() { const string execName = "Prime.Web.dll"; // TODO: change method of path getting. var relativePathPart = ExecuteOn.Os( () => "../../../../Prime.Web/bin/Release/netcoreapp2.0/publish", () => "../../../../Prime.Web/bin/release/netcoreapp2.0/osx.10.12-x64/publish"); var execFolderName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, relativePathPart); var execFullPath = Path.Combine(execFolderName, execName); var fi = new FileInfo(execFullPath); if (!fi.Exists) { throw new FileNotFoundException("Prime.Web.dll not found."); } return(new FileInfo(execFullPath)); }
public DoNextIfRegex() : base() { TestString = "[TargetPath]\\[TargetName]"; RegexFilter = "*"; ExecutionMode = ExecuteOn.ForwardExecution; }
public EnviromentAttribute(ExecuteOn executionType = ExecuteOn.Any, params string[] enviroments) { ExecutionType = executionType; Enviroments = enviroments; }
public DoNextIfExceptionsContain() : base() { ExceptionFilter = new List <string>(); ExecutionMode = ExecuteOn.ForwardExecution; }
public SkipNextIfFileFilter() : base() { FileName = "[TargetName]"; FileFilter = "*"; ExecutionMode = ExecuteOn.ForwardExecution; }