MCPcopy Create free account
hub / github.com/Icinga/icinga2 / CollectFeatures

Method CollectFeatures

lib/cli/featureutility.cpp:236–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void FeatureUtility::CollectFeatures(const String& feature_file, std::vector<String>& features)
237{
238 String feature = Utility::BaseName(feature_file);
239 boost::algorithm::replace_all(feature, ".conf", "");
240
241 Log(LogDebug, "cli")
242 << "Adding feature: " << feature;
243 features.push_back(feature);
244}

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected