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.
-
#profile ⇒ Boolean
A boolean switch for enabling execution profiling.
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.
18 19 20 |
# File 'lib/rfacter/config/settings.rb', line 18 def logger @logger end |
#nodes ⇒ Hash{String => RFacter::Node} (readonly)
A list of nodes to operate on
24 25 26 |
# File 'lib/rfacter/config/settings.rb', line 24 def nodes @nodes end |
#profile ⇒ Boolean
A boolean switch for enabling execution profiling
29 30 31 |
# File 'lib/rfacter/config/settings.rb', line 29 def profile @profile end |