Sha256: 546774a099bd66244c06cdfb7b9fb6f5255906218deea36b0c9a16253ab7c2f1

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

#encoding: UTF-8
module Procemon

  require File.join(File.dirname(__FILE__),"procemon","function","require")
  require_relative_directory File.join("procemon","mpatch")
  require_relative_directory File.join("procemon","function")
  require 'asynchronous'


  def self.init_all

    # process the ARGV parameters
    process_parameters

    # project name
    set_app_name_by_root_folder

    # init temporarily directory
    tmpdir_init

    # create config singleton
    generate_config

    # load meta-s
    meta_load

    # mount libs
    mount_libs

    # mount offline modules
    mount_modules

    # garbage collect
    ObjectSpace.garbage_collect

    # documentation generate
    generate_documentation(Application.create_documentation)

    # Daemonize
    Daemon.init

  end

  def self.doc_gen
    Dir.glob(File.join(Dir.pwd,'{doc,docs,document,documents}','**','generate_*')).each do |one_doc_generator|
      require one_doc_generator
    end
    puts "done!"
    Process.exit!
  end

  ### Load the requirements in to the general Module
  #load File.expand_path(File.join(File.dirname(__FILE__),'procemon'


end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
procemon-0.5.0 lib/procemon.rb
procemon-0.4.5 lib/procemon.rb
procemon-0.4.4 lib/procemon.rb
procemon-0.4.3 lib/procemon.rb
procemon-0.4.2 lib/procemon.rb
procemon-0.4.1 lib/procemon.rb