Beispiel #1
0
        public static void DNUPack(this ICakeContext context, string path, DNUPackSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

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

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

            restorer.Pack(path, settings);
        }
Beispiel #2
0
        protected override void RunTool()
        {
            var tool = new DNUPacker(FileSystem, Environment, ProcessRunner, Tools);

            tool.Pack(Path, Settings);
        }