Module: RFacter::DSL
- Included in:
- Util::Collection
- Defined in:
- lib/rfacter/dsl.rb
Overview
Facter compatibility layer
This module exists to provide compatibility shims for Facter DSL methods as exposed by the Facter 3 Ruby Extension API. Any fact source code that is loaded into a Util::Collection instance via ‘instance_eval` should pick up on these shims. The methods in this module should never be called outside of files that define custom facts.
However, lexical scope is a tricky thing, so “should” is the operative word here.
Defined Under Namespace
Modules: Facter
Constant Summary collapse
- COLLECTION =
FIXME: Add i18n for the following.
RFacter::Util::NonNullable.new(err_message: <<-EOS) A Facter DSL method that manipulates a fact collection was called without the collection being set. This usually happens if the DSL method is called directly instead of via an instance of RFacter::Util::Collection. EOS
- NODE =
RFacter::Util::NonNullable.new(err_message: <<-EOS) A Facter DSL method that executes shell commands was called without a node to execute on being set. This usually happens if the DSL method is called directly instead of via an instance of RFacter::Util::Collection. EOS