module Wire::App
App
is a a REST endpoint for a Wire
service @author Bryan T. Meyers
Public Class Methods
configure(conf)
click to toggle source
Callback for handling configs @param [Hash] conf the raw configuration @return [Hash] post-processed configuration
# File lib/app.rb, line 27 def self.configure(conf) conf['type'] = Object.const_get(conf['type']) if conf['type'].respond_to? :configure conf = conf['type'].configure(conf) end if conf['auth_handler'] conf['auth_handler'] = Object.const_get(conf['auth_handler']) end conf end
read_configs()
click to toggle source
Read all of the configs in './config/apps' @return [void]
# File lib/app.rb, line 40 def self.read_configs Wire::Config.read_config_dir('config/apps', method(:configure)) end