Beispiel #1
0
 static const std::string REPO(const kul::Dir& d, const std::string& r){
     if(INSTANCE().valids.count(d.path())) return (*INSTANCE().valids.find(d.path())).second;
     if(IS_SOLID(r)) INSTANCE().valids.insert(d.path(), r);
     else            GET_SCM(d, r);
     if(INSTANCE().valids.count(d.path())) return (*INSTANCE().valids.find(d.path())).second;
     KEXCEPT(Exception, "SCM not discovered for project: "+d.path());
 }
Beispiel #2
0
 Process(const std::string& cmd, const kul::Dir& d, const bool& wfe = true) : kul::AProcess(cmd, d ? d.real() : d.path(), wfe){}