Module: Cyclid::API::Plugins::ApiExtension::GithubMethods::Config

Included in:
Cyclid::API::Plugins::ApiExtension::GithubMethods
Defined in:
app/cyclid/plugins/api/github/config.rb

Overview

Plugin configuration methods

Instance Method Summary collapse

Instance Method Details

#load_github_config(config) ⇒ Object

Load the config for the Github plugin and set defaults if they’re not in the config



32
33
34
35
36
37
38
39
# File 'app/cyclid/plugins/api/github/config.rb', line 32

def load_github_config(config)
  config.symbolize_keys!

  server_config = config[:github] || {}
  Cyclid.logger.debug "config=#{server_config}"

  server_config.symbolize_keys
end