void execute() {
String resourcesAt = pojo.getResourcesAt();
String resourcesList = pojo.getResourcesList();
String resourcesMap = pojo.getResourcesMap();
Object resourceContext = pojo.getResourceContext();
Directory mountDir = pojo.getMountDir();
List<GentooFetch> fetchList = pojo.getFetchList();
infoAction("objectos");
info("Applying objectos configuration.");
resourcesAt(resourcesAt)
.addFromListAt(resourcesList)
.mapFromListAt(resourcesMap)
.evalWith(resourceContext)
.only("/etc/portage/make.conf")
.copyTo(mountDir);
for (GentooFetch fetch : fetchList) {
HttpServer distfilesServer = pojo.getDistfilesServer();
distfilesServer.download(fetch.toString())
.toDir(mountDir.dirAt("usr/portage/distfiles"));
}
}