Exemplo n.º 1
0
 public CommandBuilder(ISingleFile singleFile, IDirectory directory, ILogger logger,
     IRunExternalCommand runExternalCommand, IHtmlGetter htmlGetter, INowGetter nowGetter,
     IBlackboard blackboard)
 {
     _blackboard = blackboard;
     _singleFile = singleFile;
     _logger = logger;
     _directory = directory;
     _runExternalCommand = runExternalCommand;
     _htmlGetter = htmlGetter;
     _nowGetter = nowGetter;
 }
Exemplo n.º 2
0
        public RunInstallerCommand(string installerCommand, string installerCommandArguments, string workFolder, IUpdatePackage package, IRunExternalCommand runExternalCommand, ILogger logger)
        {
            _workFolder = workFolder;
            _package = package;

            _logger = logger;
            _runExternalCommand = runExternalCommand;

            _fullPathToLocalDirectory = Path.Combine(_workFolder, Path.GetFileNameWithoutExtension(package.Access.GetFilenameOnly()));

            _installerCommand = installerCommand;
            _installerCommandArguments = installerCommandArguments;
        }
Exemplo n.º 3
0
        public UpdateDatabase(string datebaseUpdaterCommand, string databaseUpdaterArguments, string connectionString, string workFolder, IUpdatePackage package, IRunExternalCommand runExternalCommand, ILogger logger)
        {
            _workFolder = workFolder;
            _package = package;

            _fullPathToLocalDirectory = Path.Combine(_workFolder, Path.GetFileNameWithoutExtension(package.Access.GetFilenameOnly()));

            _connectionString = connectionString;
            _datebaseUpdaterCommand = datebaseUpdaterCommand;
            _databaseUpdaterArguments = databaseUpdaterArguments;
            _logger = logger;
            _runExternalCommand = runExternalCommand;
        }