Class: DInstaller::CockpitConfig
- Inherits:
-
CFA::BaseModel
- Object
- CFA::BaseModel
- DInstaller::CockpitConfig
- Defined in:
- lib/dinstaller/cockpit_manager.rb
Overview
Cockpit configuration file representation
Instance Method Summary collapse
-
#initialize(path: DEFAULT_PATH, file_handler: nil) ⇒ CockpitConfig
constructor
Constructor.
-
#web_service ⇒ AugeasTree
Returns the augeas tree for the “WebService” section.
Constructor Details
#initialize(path: DEFAULT_PATH, file_handler: nil) ⇒ CockpitConfig
Constructor
43 44 45 |
# File 'lib/dinstaller/cockpit_manager.rb', line 43 def initialize(path: DEFAULT_PATH, file_handler: nil) super(CFA::AugeasParser.new("puppet.lns"), path, file_handler: file_handler) end |
Instance Method Details
#web_service ⇒ AugeasTree
Returns the augeas tree for the “WebService” section
If the given section does not exist, it returns an empty one
53 54 55 |
# File 'lib/dinstaller/cockpit_manager.rb', line 53 def web_service data["WebService"] ||= CFA::AugeasTree.new end |