lib/tamashii/manager.rb in tamashii-manager-0.2.7 vs lib/tamashii/manager.rb in tamashii-manager-0.3.0
- old
+ new
@@ -1,9 +1,10 @@
# frozen_string_literal: true
require 'tamashii/server'
require 'tamashii/common'
+require 'tamashii/hookable'
require 'tamashii/manager/version'
require 'tamashii/manager/subscription'
require 'tamashii/manager/config'
require 'tamashii/manager/client_manager'
@@ -37,5 +38,9 @@
# TODO: Use block mode to define resolver
# rubocop:disable Metrics/LineLength
Tamashii::Resolver.default_handler Tamashii::Manager::Handler::Broadcaster
Tamashii::Resolver.handle Tamashii::Type::AUTH_TOKEN, Tamashii::Manager::Authorization
# rubocop:enable Metrics/LineLength
+
+Tamashii::Hook.after(:config) do |config|
+ config.register(:manager, Tamashii::Manager.config)
+end