Class: RFacter::Config::Settings
- Inherits:
-
Object
- Object
- RFacter::Config::Settings
- Defined in:
- lib/rfacter/config/settings.rb
Overview
Class for top-level RFacter configuration
Instances of this class hold top-level configuration values and shared service objects such as loggers.
Instance Attribute Summary collapse
-
#logger ⇒ Logger
readonly
Access the logger instance.
-
#nodes ⇒ Hash{String => RFacter::Node}
readonly
A list of nodes to operate on.
Instance Method Summary collapse
-
#initialize(**options) ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
Instance Attribute Details
#logger ⇒ Logger (readonly)
Access the logger instance
The object stored here should conform to the interface prresented by the Ruby logger.
17 18 19 |
# File 'lib/rfacter/config/settings.rb', line 17 def logger @logger end |
#nodes ⇒ Hash{String => RFacter::Node} (readonly)
A list of nodes to operate on
23 24 25 |
# File 'lib/rfacter/config/settings.rb', line 23 def nodes @nodes end |