Class: DiscourseApi::ExampleHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/discourse_api/example_helper.rb

Class Method Summary collapse

Class Method Details

.load_ymlObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/discourse_api/example_helper.rb', line 6

def self.load_yml
  config_yml = File.expand_path("../../../config.yml", __FILE__)
  puts config_yml
  begin
    config = YAML.load_file config_yml
  rescue Errno::ENOENT
    config = {}
  end
  config
end