Exemple #1
0
        public static void DNURestore(this ICakeContext context, FilePath filePath, DNURestoreSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            if (settings == null)
            {
                settings = new DNURestoreSettings();
            }

            var restorer = new DNURestorer(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            restorer.Restore(filePath, settings);
        }
Exemple #2
0
        protected override void RunTool()
        {
            var tool = new DNURestorer(FileSystem, Environment, ProcessRunner, Tools);

            tool.Restore(FilePath, Settings);
        }