Sha256: de0ad8778a8d7dc248d52ce45c5e86b7344cb1b7d25d0c3fea0f06df6630c098
Contents?: true
Size: 1.47 KB
Versions: 11
Compression:
Stored size: 1.47 KB
Contents
require 'rubypitaya/core/app/services/redis_service' class AppInitializer < RubyPitaya::InitializerBase # method: run # parameter: initializer_content # attributes: # - services # - link: https://gitlab.com/LucianoPC/ruby-pitaya/-/blob/master/lib/rubypitaya/core/service_holder.rb # # - config # - class: RubyPitaya::Config # - link: https://gitlab.com/LucianoPC/ruby-pitaya/-/blob/master/lib/rubypitaya/core/config.rb # - methods: # - [](key) # - get config file by config path # - setup # - class: RubyPitaya::Setup # - link: https://gitlab.com/LucianoPC/ruby-pitaya/-/blob/master/lib/rubypitaya/core/setup.rb # - methods: # - [](key) # - get config file by config path # - log # - class: Logger # - link: https://ruby-doc.org/stdlib-2.6.4/libdoc/logger/rdoc/Logger.html # - methods: # - info # - log information # # - handlers # - List of all handlers # # services: # - redis # - link: # - https://github.com/redis/redis-rb/ # - https://gitlab.com/LucianoPC/ruby-pitaya/-/blob/master/lib/rubypitaya/core/app/services/redis_service.rb # def run(initializer_content) setup = initializer_content.setup services = initializer_content.services services.add(:redis, RubyPitaya::RedisService.new(setup)) playerBll = PlayerBLL.new PlayerHandler.objects.add(:bll, playerBll) end def self.path __FILE__ end end
Version data entries
11 entries across 11 versions & 1 rubygems