Method: RHC::Config#set_defaults

Defined in:
lib/rhc/config.rb

#set_defaultsObject

DEPRECATED - will be removed when old commands are gone



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/rhc/config.rb', line 116

def set_defaults
  @defaults = RHC::Vendor::ParseConfig.new()
  @opts  = RHC::Vendor::ParseConfig.new() # option switches that override config file

  @env_config = RHC::Vendor::ParseConfig.new()
  @global_config = nil
  @local_config = nil
  @opts_config = nil # config file passed in the options

  @default_proxy = nil

  @defaults.add('protonbox_server', 'api.protonbox.com')
  @env_config.add('protonbox_server', ENV['PROTONBOX_SERVER']) if ENV['PROTONBOX_SERVER']

  @opts_config_path = nil
end