コード例 #1
0
 public SkipToLabelIfRegex() : base()
 {
     TestString    = "[TargetPath]\\[TargetName]";
     RegexFilter   = "*";
     SkipToLabel   = "End";
     ExecutionMode = ExecuteOn.ForwardExecution;
 }
コード例 #2
0
 public SkipToLabelIfFileFilter() : base()
 {
     FileName      = "[TargetName]";
     FileFilter    = "*";
     SkipToLabel   = "End";
     ExecutionMode = ExecuteOn.ForwardExecution;
 }
コード例 #3
0
 public DeleteFiles()
     : base()
 {
     Retry             = 1;
     RetryDelaySeconds = 2;
     FileList          = new List <string>();
     ExecutionMode     = ExecuteOn.ForwardExecution;
 }
コード例 #4
0
 public DeleteDirectory()
     : base()
 {
     Retry                      = 1;
     RetryDelaySeconds          = 2;
     ExpandSource               = false;
     SourcePath                 = "[TargetPath]";
     DirectoryFilter            = "[TargetName]";
     DeleteEmptyDirectoriesOnly = true;
     RecurseSource              = false;
     ExecutionMode              = ExecuteOn.ForwardExecution;
 }
コード例 #5
0
        public Delete()
            : base()
        {
            Authentication = new Authentication();

            Retry             = 1;
            RetryDelaySeconds = 2;
            ExpandSource      = false;
            SourcePath        = "[TargetPath]";
            FileFilter        = "[TargetName]";
            DirectoryFilter   = "!TEMP";
            RecurseSource     = false;
            ExecutionMode     = ExecuteOn.ForwardExecution;
        }
コード例 #6
0
        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;
        }
コード例 #7
0
ファイル: PrimeWeb.cs プロジェクト: renwoox/prime
        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));
        }
コード例 #8
0
 public DoNextIfRegex() : base()
 {
     TestString    = "[TargetPath]\\[TargetName]";
     RegexFilter   = "*";
     ExecutionMode = ExecuteOn.ForwardExecution;
 }
コード例 #9
0
 public EnviromentAttribute(ExecuteOn executionType = ExecuteOn.Any, params string[] enviroments)
 {
     ExecutionType = executionType;
     Enviroments   = enviroments;
 }
コード例 #10
0
 public DoNextIfExceptionsContain() : base()
 {
     ExceptionFilter = new List <string>();
     ExecutionMode   = ExecuteOn.ForwardExecution;
 }
コード例 #11
0
 public SkipNextIfFileFilter() : base()
 {
     FileName      = "[TargetName]";
     FileFilter    = "*";
     ExecutionMode = ExecuteOn.ForwardExecution;
 }