lib/GDO/Core/ModuleInstaller.rb
###############
### Install ###
###############    
# Install and update a module
Install
Install and update a module
Install Install and update a module
def install_module(mod)
      ::GDO::Core::Log.info "ModuleInstaller.install_module(#{mod.name})"
      install_module_tables(mod)
      if mod_db = ::GDO::Core::GDO_Module.table.get_by(module_name: mod.module_name)
        mod.set_vars(mod_db.get_vars)
        mod.persisted
      else
        mod = create_module(mod)
      end
      mod.recache
      ::GDO::Core::ModuleLoader.instance.add_module(mod)
      update_module(mod)
      mod.after_install
      self
    end
def install_module ( mod ) :: GDO :: Core :: Log . info "ModuleInstaller.install_module(#{mod.name})" install_module_tables ( mod ) if mod_db = :: GDO :: Core :: GDO_Module . table . get_by ( module_name : mod . module_name ) mod . set_vars ( mod_db . get_vars ) mod . persisted else mod = create_module ( mod ) end mod . recache :: GDO :: Core :: ModuleLoader . instance . add_module ( mod ) update_module ( mod ) mod . after_install self end
Install
Install and update a module
Install Install and update a module
# Install tables # copy db vars into old object # put into cache       # updates # Event
mod