public bool PushLocalArtifacts(IEnvLocalFeed feed, IActivityMonitor m, IArtifactRepository target, IEnumerable <ArtifactInstance> artifacts, bool arePublicArtifacts)
        {
            if (!target.HandleArtifactType(CKSetupClient.CKSetupType))
            {
                return(true);
            }
            string localStore = feed.GetCKSetupStorePath();

            return(target.PushAsync(m, new CKSetupArtifactLocalSet(artifacts, localStore, arePublicArtifacts)).GetAwaiter().GetResult());
        }
        public bool PushLocalArtifacts(IEnvLocalFeed feed, IActivityMonitor m, IArtifactRepository target, IEnumerable <ArtifactInstance> artifacts, bool arePublicArtifacts)
        {
            if (!target.HandleArtifactType(NuGetClient.NuGetType))
            {
                return(true);
            }
            var locals = new List <LocalNuGetPackageFile>();

            foreach (var a in artifacts)
            {
                var local = feed.GetNuGetPackageFile(m, a.Artifact.Name, a.Version);
                if (local == null)
                {
                    m.Error($"Unable to find local package {a} in {feed.PhysicalPath}.");
                    return(false);
                }
                locals.Add(local);
            }
            return(target.PushAsync(m, new NuGetArtifactLocalSet(locals, arePublicArtifacts)).GetAwaiter().GetResult());
        }