Sha256: 49c3132ebe82d83298c4310f08a38dc42c271507e4c2aeb0d560d8154f8c6e10

Contents?: true

Size: 836 Bytes

Versions: 1

Compression:

Stored size: 836 Bytes

Contents

#encoding: UTF-8
module Procemon

  #require 'sourcerer'

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


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

  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.1 lib/procemon.rb