Sha256: 0c4969c761be63cb4a32d884d94e5de0f34381a15e2e08081c5980d5ff53ae3f

Contents?: true

Size: 346 Bytes

Versions: 18

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true
require 'yaml'

module DiscourseApi
  class ExampleHelper

    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

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
discourse_api-1.1.0 lib/discourse_api/example_helper.rb
discourse_api-1.0.0 lib/discourse_api/example_helper.rb
discourse_api-0.48.1 lib/discourse_api/example_helper.rb
discourse_api-0.48.0 lib/discourse_api/example_helper.rb
discourse_api-0.47.0 lib/discourse_api/example_helper.rb
discourse_api-0.46.0 lib/discourse_api/example_helper.rb
discourse_api-0.45.1 lib/discourse_api/example_helper.rb
discourse_api-0.45.0 lib/discourse_api/example_helper.rb
discourse_api-0.44.0 lib/discourse_api/example_helper.rb
discourse_api-0.43.1 lib/discourse_api/example_helper.rb
discourse_api-0.43.0 lib/discourse_api/example_helper.rb
discourse_api-0.42.0 lib/discourse_api/example_helper.rb
discourse_api-0.41.0 lib/discourse_api/example_helper.rb
discourse_api-0.40.0 lib/discourse_api/example_helper.rb
discourse_api-0.39.3 lib/discourse_api/example_helper.rb
discourse_api-0.39.2 lib/discourse_api/example_helper.rb
discourse_api-0.39.1 lib/discourse_api/example_helper.rb
discourse_api-0.39.0 lib/discourse_api/example_helper.rb