Method: Metaverse::Base#read_config

Defined in:
lib/metaverse/base.rb

#read_config(path) ⇒ Object



157
158
159
160
161
162
163
164
165
# File 'lib/metaverse/base.rb', line 157

def read_config path
  Errors::config_not_found! if not File.exist? path

  config = YAML.load File.open(path)
  @repos_paths = config['repos'] || []
  @origin_remote = config['remotes']['main']
  @own_remote = config['remotes']['own']
  @ignored_repos = config['ignore'] || []
end