Sha256: 55c5c4003738f95dccd6770eaaad89bb6719a8d9bc348ef88072770376bb980d
Contents?: true
Size: 685 Bytes
Versions: 16
Compression:
Stored size: 685 Bytes
Contents
#include <internal/facts/resolvers/path_resolver.hpp> #include <facter/facts/collection.hpp> #include <facter/facts/scalar_value.hpp> #include <facter/facts/fact.hpp> #include <leatherman/util/environment.hpp> using namespace std; using namespace leatherman::util; namespace facter { namespace facts { namespace resolvers { path_resolver::path_resolver() : resolver("path", {fact::path}) { } void path_resolver::resolve(collection& facts) { string path_val; if (environment::get("PATH", path_val)) { facts.add(fact::path, make_value<string_value>(move(path_val))); } } }}} // namespace facter::facts::resolvers
Version data entries
16 entries across 16 versions & 2 rubygems