public AdvProcessWrapper(System.Diagnostics.Process process, ICakeLog log,
     Func<string, string> filterOutput)
 {
     _log = log;
     _filterOutput = filterOutput ?? (source => "[REDACTED]");
     _process = process;
 }
Example #2
0
            public static FtpsiteManager Using(ICakeEnvironment environment, ICakeLog log, ServerManager server)
            {
                FtpsiteManager manager = new FtpsiteManager(environment, log);

                manager.SetServer(server);

                return manager;
            }
 public NuGetPackageConfigurationCreator(IFileSystem fileSystem, ICakeEnvironment environment, 
     ICakeLog log, INugetPackageVersionProber prober)
 {
     _fileSystem = fileSystem;
     _environment = environment;
     _log = log;
     _prober = prober;
 }
            public static ApplicationPoolManager Using(ICakeEnvironment environment, ICakeLog log, ServerManager server)
            {
                ApplicationPoolManager manager = new ApplicationPoolManager(environment, log);
            
                manager.SetServer(server);

                return manager;
            }
Example #5
0
            public static WebFarmManager Using(ICakeEnvironment environment, ICakeLog log, ServerManager server)
            {
                WebFarmManager manager = new WebFarmManager(environment, log);
            
                manager.SetServer(server);

                return manager;
            }
Example #6
0
 public InstallCommand(IRuntime runtime, IFileSystem fileSystem, ICakeEnvironment environment,
     ICakeLog log, INuGetPackageConfigurationCreator packageConfigCreator,
     IFileCopier fileCopier, IHttpDownloader downloader, IGitIgnorePatcher gitIgnorePatcher)
 {
     _runtime = runtime;
     _fileSystem = fileSystem;
     _environment = environment;
     _log = log;
     _packageConfigCreator = packageConfigCreator;
     _fileCopier = fileCopier;
     _downloader = downloader;
     _gitIgnorePatcher = gitIgnorePatcher;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ProcessRunner" /> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="log">The log.</param>
 public AdvProcessRunner(ICakeEnvironment environment, ICakeLog log)
 {
     if (environment == null)
     {
         throw new ArgumentNullException("environment");
     }
     if (log == null)
     {
         throw new ArgumentNullException("log");
     }
     _environment = environment;
     _log = log;
 }
            /// <summary>
            /// Initializes a new instance of the <see cref="CloudFrontManager" /> class.
            /// </summary>
            /// <param name="environment">The environment.</param>
            /// <param name="log">The log.</param>
            public CloudFrontManager(ICakeEnvironment environment, ICakeLog log)
            {
                if (environment == null)
                {
                    throw new ArgumentNullException("environment");
                }
                if (log == null)
                {
                    throw new ArgumentNullException("log");
                }

                _Environment = environment;
                _Log = log;
            }
            /// <summary>
            /// Initializes a new instance of the <see cref="TopshelfManager" /> class.
            /// </summary>
            /// <param name="environment">The environment.</param>
            /// <param name="runner">The process runner.</param>
            /// <param name="log">The log.</param>
            public TopshelfManager(ICakeEnvironment environment, IProcessRunner runner, ICakeLog log)
            {
                if (environment == null)
                {
                    throw new ArgumentNullException("environment");
                }
                if (runner == null)
                {
                    throw new ArgumentNullException("runner");
                }
                if (log == null)
                {
                    throw new ArgumentNullException("log");
                }

                _Environment = environment;
                _Runner = runner;
                _Log = log;
            }
Example #10
0
            /// <summary>
            /// Initializes a new instance of the <see cref="S3Manager" /> class.
            /// </summary>
            /// <param name="fileSystem">The file System.</param>
            /// <param name="environment">The environment.</param>
            /// <param name="log">The log.</param>
            public S3Manager(IFileSystem fileSystem, ICakeEnvironment environment, ICakeLog log)
            {
                if (fileSystem == null)
                {
                    throw new ArgumentNullException("fileSystem");
                }
                if (environment == null)
                {
                    throw new ArgumentNullException("environment");
                }
                if (log == null)
                {
                    throw new ArgumentNullException("log");
                }

                _FileSystem = fileSystem;
                _Environment = environment;
                _Log = log;

                this.LogProgress = true;
            }
Example #11
0
            public ApplicationPoolManager(ICakeEnvironment environment, ICakeLog log)
                    : base(environment, log)
            {

            }
 public MonoConsoleReportPrinter(ICakeLog log)
 {
     _log = log;
 }
Example #13
0
 public FileCopier(IFileSystem fileSystem, ICakeEnvironment environment, ICakeLog log)
 {
     _fileSystem = fileSystem;
     _environment = environment;
     _log = log;
 }
Example #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FakeLogFileFormat"/> class.
 /// </summary>
 /// <param name="log">The Cake log instance.</param>
 public FakeLogFileFormat(ICakeLog log)
     : base(log)
 {
 }
 protected override IScriptSession CreateSession(IScriptHost host, ICakeLog log)
 {
     // Create the session.
     return(new DefaultRoslynNightlyScriptSession(host, log));
 }
Example #16
0
 /// <inheritdoc />
 public PlasticSCMMergeExecutor(IFileSystem fileSystem, ICakeEnvironment environment,
                                IProcessRunner processRunner, IToolLocator tools, ICakeLog log) : base(fileSystem, environment, processRunner, tools,
                                                                                                       "merge", log)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NpgsqlQueryRepository" /> class.
 /// </summary>
 /// <param name="log">The log.</param>
 public NpgsqlQueryRepository(ICakeLog log)
     : base(log)
 {
 }
Example #18
0
 public XCRunRunner(IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner,
                    IToolLocator tools, ICakeLog log, XCRunSettings settings) : base(fileSystem, environment, processRunner, tools, settings)
 {
     _log = log;
 }
Example #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AppVeyorProvider"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="processRunner">The process runner.</param>
 /// <param name="log">The cake log.</param>
 public AppVeyorProvider(ICakeEnvironment environment, IProcessRunner processRunner, ICakeLog log)
 {
     _environment   = environment ?? throw new ArgumentNullException(nameof(environment));
     _processRunner = processRunner ?? throw new ArgumentNullException(nameof(processRunner));
     _log           = log ?? throw new ArgumentNullException(nameof(log));
     Environment    = new AppVeyorEnvironmentInfo(environment);
 }
Example #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MsBuildIssuesProvider"/> class.
 /// </summary>
 /// <param name="log">The Cake log context.</param>
 /// <param name="settings">Settings for reading the log file.</param>
 public MsBuildIssuesProvider(ICakeLog log, MsBuildIssuesSettings settings)
     : base(log, settings)
 {
 }
Example #21
0
 public DotCoverContext(ICakeContext context)
 {
     _context = context;
     Log      = new NullLog();
     _runner  = new DotCoverProcessRunner();
 }
Example #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KrakenOptimizer" /> class.
 /// </summary>
 /// <param name="fileSystem">The file system.</param>
 /// <param name="environment">The environment.</param>
 /// <param name="log">The log.</param>
 /// <param name="apiKey">The Kraken API Key.</param>
 /// <param name="secretKey">The Kraken API Secret Key.</param>
 public KrakenOptimizer(IFileSystem fileSystem, ICakeEnvironment environment, ICakeLog log, string apiKey, string secretKey)
     : base(fileSystem, environment, log)
 {
     _ApiKey    = apiKey;
     _SecretKey = secretKey;
 }
Example #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KrakenOptimizer" /> class.
 /// </summary>
 /// <param name="fileSystem">The file system.</param>
 /// <param name="environment">The environment.</param>
 /// <param name="log">The log.</param>
 public KrakenOptimizer(IFileSystem fileSystem, ICakeEnvironment environment, ICakeLog log)
     : this(fileSystem, environment, log, "", "")
 {
 }
Example #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationPoolManager" /> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="log">The log.</param>
 public ApplicationPoolManager(ICakeEnvironment environment, ICakeLog log)
     : base(environment, log)
 {
 }
Example #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoRestRunner"/> class
 /// </summary>
 /// <param name="fileSystem">The file system</param>
 /// <param name="environment">The environment</param>
 /// <param name="processRunner">Process runner</param>
 /// <param name="tools">Registered tools</param>
 /// <param name="log">Log</param>
 public AutoRestRunner(IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner, IToolLocator tools, ICakeLog log) : base(fileSystem, environment, processRunner, tools)
 {
     Environment = environment;
     Log         = log;
 }
Example #26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScriptAliasFinder"/> class.
 /// </summary>
 /// <param name="log">The log.</param>
 public ScriptAliasFinder(ICakeLog log)
 {
     _log = log;
 }
Example #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IssueProvider"/> class.
 /// </summary>
 /// <param name="log">The Cake log context.</param>
 protected IssueProvider(ICakeLog log)
     : base(log)
 {
 }
Example #28
0
 public ScriptAssemblyResolver(ICakeLog log)
 {
     _log = log;
     AppDomain.CurrentDomain.AssemblyResolve += AssemblyResolve;
 }
Example #29
0
 public DryRunExecutionStrategy(ICakeLog log)
 {
     _log     = log ?? throw new ArgumentNullException(nameof(log));
     _counter = 1;
 }
Example #30
0
 public SonarRunner(ICakeLog log, IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner, IToolLocator tools) : base(fileSystem, environment, processRunner, tools)
 {
     _log         = log;
     _environment = environment;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MsSqlQueryRepository" /> class.
 /// </summary>
 /// <param name="log">The log.</param>
 public MsSqlQueryRepository(ICakeLog log)
     : base(log)
 {
 }
Example #32
0
 public HockeyAppClient(ICakeLog log)
 {
     _log = log;
     _client = new HockeyAppApiClient(HockeyAppBaseUrl);
     _log.Verbose("Initialized HockeyApp Api at {0}", HockeyAppBaseUrl);
 }
Example #33
0
 public ScriptAnalyzerFixture()
 {
     Environment = FakeEnvironment.CreateUnixEnvironment();
     FileSystem  = new FakeFileSystem(Environment);
     Log         = Substitute.For <ICakeLog>();
 }
 public IISExpressRunnerTestImpl(IFileSystem fileSystem, ICakeEnvironment environment,
                                 IProcessRunner processRunner, IGlobber globber, IRegistry registry, ICakeLog log,
                                 IAdvProcessRunner advProcessRunner)
     : base(
         fileSystem, environment, processRunner, globber, registry, log, advProcessRunner
         )
 {
 }
Example #35
0
 public NuspecProcessor(IFileSystem fileSystem, ICakeEnvironment environment, ICakeLog log)
 {
     _fileSystem  = fileSystem;
     _environment = environment;
     _log         = log;
 }
Example #36
0
 public MonoScriptEngine(ICakeLog log)
 {
     _log = log;
 }
 public CakeLogger(ICakeLog cakeLogger)
 {
     _cakeLogger = cakeLogger;
 }
Example #38
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BaseLogFileFormat{TIssueProvider, TSettings}"/> class.
        /// </summary>
        /// <param name="log">The Cake log instance.</param>
        protected BaseLogFileFormat(ICakeLog log)
        {
            log.NotNull(nameof(log));

            this.Log = log;
        }
Example #39
0
            public WebFarmManager(ICakeEnvironment environment, ICakeLog log)
                : base(environment, log)
            {

            }
Example #40
0
 public ArgumentParser(ICakeLog log, IFileSystem fileSystem)
 {
     _log             = log;
     _fileSystem      = fileSystem;
     _verbosityParser = new VerbosityParser();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlFileLoggerLogFileFormat"/> class.
 /// </summary>
 /// <param name="log">The Cake log instance.</param>
 public XmlFileLoggerLogFileFormat(ICakeLog log)
     : base(log)
 {
 }
 /// <inheritdoc />
 public PlasticSCMAddExecutor(IFileSystem fileSystem, ICakeEnvironment environment,
                              IProcessRunner processRunner, IToolLocator tools, ICakeLog log) : base(fileSystem, environment, processRunner, tools,
                                                                                                     "add", log)
 {
     FormatStrings.Add("format", "OK" + PlasticSCMAddParser.SEPARATOR_CHAR + "{0}");
     FormatStrings.Add("errorformat", "ERR" + PlasticSCMAddParser.SEPARATOR_CHAR + "{0}");
 }
 public CakeLoggerFacts()
 {
     _log = Substitute.For<ICakeLog>();
     _message = AutoFixture.Create<string>();
     _cakeLogger = new CakeLogger(_log);
 }
Example #44
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultExecutionStrategy"/> class.
 /// </summary>
 /// <param name="log">The log.</param>
 /// <param name="exclusiveTaskName">The optional exclusive task name to execute.</param>
 public CodeCakeExecutionStrategy(ICakeLog log, string exclusiveTaskName = null)
 {
     _exclusiveTaskName = exclusiveTaskName;
     _default           = new DefaultExecutionStrategy(log);
 }
Example #45
0
            public FtpsiteManager(ICakeEnvironment environment, ICakeLog log)
                : base(environment, log)
            {

            }
Example #46
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebFarmManager" /> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="log">The log.</param>
 public WebFarmManager(ICakeEnvironment environment, ICakeLog log)
     : base(environment, log)
 {
 }
 public static void LogVersionInformation(ICakeLog log)
 {
     log.Verbose(entry =>
                 entry("Using add-in: {0} v{1} ({2})", _assemblyName, _assemblyVersion, _informationalVersion));
 }
 public ArgumentParser(ICakeLog log, IFileSystem fileSystem)
 {
     _log = log;
     _fileSystem = fileSystem;
 }