Method: VMC::Cli::Command::Micro#store_config
- Defined in:
- lib/cli/commands/micro.rb
#store_config(config) ⇒ Object
Save the cleartext password if –save is supplied. Note: it is due to vix we have to use a cleartext password :( Only if –password is used and not –save is the password deleted from the config file before it is stored to disk.
73 74 75 76 77 78 79 80 81 |
# File 'lib/cli/commands/micro.rb', line 73 def store_config(config) if [:save] warn("cleartext password saved in: #{VMC::Cli::Config::MICRO_FILE}") elsif [:password] || @password config.delete('password') end VMC::Cli::Config.store_micro(config) end |