Пример #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);
        }
Пример #2
0
 public static void DNURestore(this ICakeContext context, DNURestoreSettings settings)
 {
     context.DNURestore(null, settings);
 }