public static string BranchUrl(Feed feed) { var branchUrl = feed.Url; if (branchUrl.Contains(BranchPlaceholder)) { var branchName = BranchDetector.Current(); branchUrl = branchUrl.Replace(BranchPlaceholder, branchName); RippleLog.Debug("Detected branch feed: {0}. Current branch is {1}. Setting url to {2}".ToFormat(feed, branchName, branchUrl), false); } return(branchUrl); }
private INugetFeed buildFileSystemFeed(Feed feed) { var directory = feed.Url.Replace("file://", ""); if (directory.Contains(BranchPlaceholder)) { var branchName = BranchDetector.Current(); directory = directory.Replace(BranchPlaceholder, branchName); RippleLog.Debug("Detected branch feed: {0}. Current branch is {1}. Setting directory to {2}".ToFormat(feed, branchName, directory)); } if (feed.Mode == UpdateMode.Fixed) { return(new FileSystemNugetFeed(directory, feed.Stability)); } return(new FloatingFileSystemNugetFeed(directory, feed.Stability)); }