diff --git a/src/dumper/dumper.cs b/src/dumper/dumper.cs index ee84c6a..b154b6b 100644 --- a/src/dumper/dumper.cs +++ b/src/dumper/dumper.cs @@ -301,6 +301,22 @@ class Dumper WriteJson("offerings", _offeringMap.Values); _log.Info("Dumped {0} offerings", _offeringMap.Count); } + + public void DumpOfferingIcons() + { + if (_provider == null) + throw new InvalidOperationException("Attempted to call dump function without dumper initialization/state"); + + _log.Info("Dumping offering icons"); + + foreach (OfferingInfo info in _offeringMap.Values) + ExportIcon(info.iconFilePath, "/offering-icons/"); + + _log.Info("Dumped all offering icons"); + + return; + } + /* * internal helper functions */