Sha256: 600afed1e10f0f537521c8aabe6c38b12490797e2409bf8e937637b3465e2a8f

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

#encoding: UTF-8
module Procemon

  #require 'sourcerer'

  require 'loader'
  require 'mpatch'
  require 'bindless'


  require_relative_directory File.join("procemon","function")

  def self.init_all

    # process the ARGV parameters
    process_parameters

    # project name
    set_app_name_by_root_folder

    # init temporarily directory
    tmpdir_init

    # Daemonize
    Daemon.init

    # create config singleton
    Loader.metaloader_framework root: Loader.caller_root_folder,
                                config_obj: Application.config

    Dir.glob(File.join(Loader.caller_root_folder,"{lib,libs}","*")).each do |path|
      if !File.directory? path
        require path
      end
    end

    # garbage collect
    ObjectSpace.garbage_collect

    # documentation generate
    generate_documentation

  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
procemon-1.2.0 lib/procemon.rb