# File lib/Helpers/IrModuleModule.rb, line 40 def self.update_needed_modules() # Call the wizard on whatever module wizard = IrModuleModule.find(:first).old_wizard_step('module.upgrade.simple') # Run all state of the wizard step_dict = wizard.datas.merge({}) res=wizard.init(step_dict) step_dict=res.datas.merge(step_dict) res=wizard.next(step_dict) step_dict=res.datas.merge(step_dict) res=wizard.start(step_dict) step_dict=res.datas.merge(step_dict) res=wizard.end(step_dict) if res : return true else raise "!!! --- HELPER ERROR : update_needed_modules was unable to upgrade needed modules.." end end