Sha256: 31ba79d06a64d38f20d191902b853a2823d7ca5697fc5e8c585aee7bc3b2ae2b

Contents?: true

Size: 1.08 KB

Versions: 16

Compression:

Stored size: 1.08 KB

Contents

class AppInitializer < RubyPitaya::InitializerBase

  # method:     run
  # parameter:  initializer_content
  # attributes:
  #  - redis
  #    - link: https://github.com/redis/redis-rb/
  #
  #  - mongo
  #    - class: Mongo::Client
  #    - link: https://docs.mongodb.com/ruby-driver/current/tutorials/quick-start/
  #
  #  - 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

  def run(initializer_content)
    playerBll = PlayerBLL.new

    PlayerHandler.objects.add(:bll, playerBll)
  end

  def self.path
    __FILE__
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rubypitaya-3.4.2 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.4.1 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.4.0 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.3.7 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.3.6 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.3.5 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.3.4 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.3.3 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.3.2 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.3.1 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.3.0 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.2.0 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.1.1 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.1.0 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.0.3 ./lib/rubypitaya/app-template/app/app_initializer.rb
rubypitaya-3.0.2 ./lib/rubypitaya/app-template/app/app_initializer.rb