Project

General

Profile

Actions

Feature #2435

closed

Plugin API to check that a plugin is correctly installed

Added by Eric Davis over 15 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
2009-01-03
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix

Description

Both Redmine and Engine migrations follow a strict naming convention for plugins. Problem is, depending on the repository script/plugin install might install the plugin to an incorrect directory. This causes several issues including:

  • migrations get named after the wrong plugin
  • Settings get messed up and set incorrectly

I propose adding a check to Redmine::Plugin.register to make sure that the plugin name matches the installation directory.

Example:

# Required to be installed in vendor/plugins/budget_plugin
Redmine::Plugin.register :budget_plugin  

# Requires to be installed in vendor/plugins/embedded
Redmine::Plugin.register :embedded

References:

Actions

Also available in: Atom PDF