示例#1
0
        public void Execute(PackagesInput input, IPackageService service)
        {
            var exploder = BuildExploder();

            if (input.CleanAllFlag)
            {
                service.CleanAllPackages(input.AppFolder);
            }


            if (input.ExplodeFlag)
            {
                // TODO -- will need to do this for assembly packages as well

                Console.WriteLine("Exploding all the package zip files for the application at " + input.AppFolder);
                exploder.ExplodeAllZipsAndReturnPackageDirectories(input.AppFolder, new PackageLog());
            }

            // TODO -- this doesn't work for anything but fubu
            if (input.RemoveAllFlag)
            {
                service.RemoveAllPackages(input.AppFolder);
            }

            // TODO -- this needs to be redone
            //exploder.LogPackageState(input.AppFolder);
        }
示例#2
0
 public void CleanAndRemoveAllPackages()
 {
     _packaging.CleanAllPackages(_applicationDirectory);
     _packaging.RemoveAllPackages(_applicationDirectory);
 }