Class: DInstallerCli::InstallConfig::Root
- Inherits:
-
Object
- Object
- DInstallerCli::InstallConfig::Root
- Defined in:
- lib/dinstaller_cli/install_config.rb
Overview
Class to represent the root user config
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(password: nil, ssh_key: nil) ⇒ Root
constructor
Constructor.
-
#to_h ⇒ Hash
Converts the settings to hash.
Constructor Details
#initialize(password: nil, ssh_key: nil) ⇒ Root
Constructor
132 133 134 135 |
# File 'lib/dinstaller_cli/install_config.rb', line 132 def initialize(password: nil, ssh_key: nil) @password = password @ssh_key = ssh_key end |
Instance Attribute Details
#password ⇒ String?
123 124 125 |
# File 'lib/dinstaller_cli/install_config.rb', line 123 def password @password end |
#ssh_key ⇒ String?
126 127 128 |
# File 'lib/dinstaller_cli/install_config.rb', line 126 def ssh_key @ssh_key end |
Instance Method Details
#to_h ⇒ Hash
Converts the settings to hash
140 141 142 143 144 145 |
# File 'lib/dinstaller_cli/install_config.rb', line 140 def to_h { "ssh_key" => ssh_key, "password" => password } end |