Class: OsDetector
- Inherits:
-
Object
- Object
- OsDetector
- Includes:
- Singleton
- Defined in:
- lib/facter/framework/detector/os_detector.rb
Instance Attribute Summary collapse
-
#hierarchy ⇒ Object
readonly
Returns the value of attribute hierarchy.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Instance Method Summary collapse
-
#initialize(*_args) ⇒ OsDetector
constructor
A new instance of OsDetector.
Constructor Details
#initialize(*_args) ⇒ OsDetector
Returns a new instance of OsDetector.
10 11 12 13 14 |
# File 'lib/facter/framework/detector/os_detector.rb', line 10 def initialize(*_args) @log = Facter::Log.new(self) @os_hierarchy = Facter::OsHierarchy.new @identifier = detect end |
Instance Attribute Details
#hierarchy ⇒ Object (readonly)
Returns the value of attribute hierarchy.
8 9 10 |
# File 'lib/facter/framework/detector/os_detector.rb', line 8 def hierarchy @hierarchy end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
8 9 10 |
# File 'lib/facter/framework/detector/os_detector.rb', line 8 def identifier @identifier end |