Class: DInstallerCli::InstallConfigReader
- Inherits:
-
Object
- Object
- DInstallerCli::InstallConfigReader
- Defined in:
- lib/dinstaller_cli/install_config_reader.rb
Overview
Class for generating the config of the installation from a YAML file
The YAML file has the following structure:
product: <product-id>
languages:
- <language-id>
- <language-id>
disks:
- <device-name>
- <device-name>
user:
name: <name>
fullname: <fullname>
password: <password>
autologin: <autologin>
root:
password: <password>
ssh_key: <key>
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
-
#initialize(source) ⇒ InstallConfigReader
constructor
Constructor.
-
#read ⇒ InstallConfig
Reads the config file and generates an installation config.
Constructor Details
#initialize(source) ⇒ InstallConfigReader
Constructor
63 64 65 |
# File 'lib/dinstaller_cli/install_config_reader.rb', line 63 def initialize(source) @source = source end |
Instance Method Details
#read ⇒ InstallConfig
Reads the config file and generates an installation config
72 73 74 75 |
# File 'lib/dinstaller_cli/install_config_reader.rb', line 72 def read content = load_content config_from(content) end |