Tasks

Additionals comes with some rake tasks, which can be used for administration.

drop_settings

rake redmine:additionals:drop_settings plugin=PLUGIN

Drop settings for a plugin

Parameters:plugin (string) – name of the plugin

Examples

Remove plugin settings for redmine plugin named redmine_plugin_example

bundle exec rake redmine:additionals:drop_settings RAILS_ENV=production plugin="redmine_plugin_example"

setting_set

rake redmine:additionals:setting_set name=NAME setting=SETTING value=VALUE

Set settings for redmine or plugin

Parameters:
  • name (string) – name of the plugin or redmine (this is optional, if not defined redmine is used)
  • setting (string) – name of setting
  • value (string) – value for setting
  • values (string) – list of values (seperator is ,) to generate value array automaticaly

Examples

Set application title for Redmine

bundle exec rake redmine:additionals:setting_set RAILS_ENV=production setting="app_title" value="Redmine test instance"

Set default modules for new projects

bundle exec rake redmine:additionals:setting_set RAILS_ENV=production setting="default_projects_modules" values="issue_tracking,time_tracking,wiki"

Set plugin setting open_external_urls for plugin additionals to value 2

bundle exec rake redmine:additionals:setting_set RAILS_ENV=production name="additionals" setting="open_external_urls" value="1"

setting_get

rake redmine:additionals:setting_get name=NAME setting=SETTING

Get a setting of redmine or a plugin

Parameters:
  • name (string) – name of the plugin or redmine (this is optional, if not defined redmine is used)
  • setting (string) – name of setting

Examples

Get setting for open_external_urls of the plugin additionals

bundle exec rake redmine:additionals:setting_get RAILS_ENV=production name="additionals" setting="open_external_urls"

Get app_title of redmine

bundle exec rake redmine:additionals:setting_get RAILS_ENV=production name="redmine" setting="app_title"

Get app_title of redmine

bundle exec rake redmine:additionals:setting_get RAILS_ENV=production setting="app_title"