Sha256: 19bc6f66a6ea28d79366603d535f859e02508747ae597dc58bdb00c8863a6d5d
Contents?: true
Size: 1.24 KB
Versions: 3
Compression:
Stored size: 1.24 KB
Contents
require 'singleton' require 'hoth/version' require 'active_support/inflector' # must be loaded after alls transports and all encodings require 'hoth/transport' require 'hoth/service_definition' require 'hoth/service_module' require 'hoth/endpoint' require 'hoth/service' require 'hoth/modules' require 'hoth/service_registry' require 'hoth/services' require 'hoth/util/logger' require 'hoth/extension/core/exception' require 'hoth/exceptions' require 'digest/sha1' module Hoth class <<self def init! load_service_definition load_module_definition Logger.init_logging! @client_uuid = Digest::SHA1.hexdigest("Time.now--#{rand()}") end def client_uuid @client_uuid end def config_path @config_path || "config/" end def config_path=(config_path) @config_path = config_path end def load_service_definition require File.join(config_path, "service_definition") end def load_module_definition require File.join(config_path, "module_definition") end def env @env || ENV["HOTH_ENV"] || (Object.const_defined?("Rails") ? Rails.env.to_sym : :development) end def env=(env) @env = env.to_sym end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hoth-0.4.2 | lib/hoth.rb |
hoth-0.4.1 | lib/hoth.rb |
hoth-0.4.0 | lib/hoth.rb |