Sha256: 09f4c55c19192c4334b7f7808c3536acafb098fbbf2b07208bf65ea11b12b59c
Contents?: true
Size: 1.29 KB
Versions: 16
Compression:
Stored size: 1.29 KB
Contents
/** * @file * Declares the base Ruby fact resolver. */ #pragma once #include <facter/facts/resolver.hpp> namespace facter { namespace facts { namespace resolvers { /** * Responsible for resolving Ruby facts, when a Ruby runtime is available. */ struct ruby_resolver : resolver { /** * Constructs the ruby_resolver. */ ruby_resolver(); /** * Called to resolve all facts the resolver is responsible for. * @param facts The fact collection that is resolving facts. */ virtual void resolve(collection& facts) override; protected: /** * Represents Ruby metadata. */ struct data { /** * Stores RUBY_PLATFORM. */ std::string platform; /** * Stores the Ruby sitelibdir. */ std::string sitedir; /** * Stores RUBY_VERSION. */ std::string version; }; /** * Collects the resolver data. * @param facts The fact collection that is resolving facts. * @return Returns the resolver data. */ virtual data collect_data(collection& facts); }; }}} // namespace facter::facts::resolvers
Version data entries
16 entries across 16 versions & 2 rubygems