Method: LabClient::ClientSetup#setup_profile
- Defined in:
- lib/labclient/client/setup.rb
#setup_profile ⇒ Object
Support for Named Profiles
43 44 45 46 47 48 49 50 51 |
# File 'lib/labclient/client/setup.rb', line 43 def setup_profile return false unless File.exist? home_file config = Oj.load_file(home_file, { symbol_keys: true }) return false unless config.key? profile self.settings ||= {} settings.merge! config[profile] end |