Method: Cnvrg::Helpers#get_config
- Defined in:
- lib/cnvrg/helpers.rb
#get_config ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/cnvrg/helpers.rb', line 40 def get_config home_dir = File.('~') config = {} begin if File.exist? home_dir+"/.cnvrg/config.yml" config = YAML.load_file(home_dir+"/.cnvrg/config.yml") end end return config end |