Sha256: f68ff1135a93173bf502905e62451e321bc0c86c4ba6d9835bd2186aea445b77

Contents?: true

Size: 648 Bytes

Versions: 3

Compression:

Stored size: 648 Bytes

Contents

require "tamashii/manager/server"
require "tamashii/manager/version"
require "tamashii/manager/config"
require "tamashii/manager/authorization"
require "tamashii/manager/handler/broadcaster"
require "tamashii/manager/clients"
require "tamashii/common"

Tamashii::Resolver.default_handler Tamashii::Manager::Handler::Broadcaster
Tamashii::Resolver.handle Tamashii::Type::AUTH_TOKEN, Tamashii::Manager::Authorization

module Tamashii
  module Manager
    def self.config(&block)
      return Config.class_eval(&block) if block_given?
      Config
    end

    def self.logger
      @logger ||= Tamashii::Logger.new(Config.log_file)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tamashii-manager-0.1.7 lib/tamashii/manager.rb
tamashii-manager-0.1.5 lib/tamashii/manager.rb
tamashii-manager-0.1.4 lib/tamashii/manager.rb