File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
namespace :redmine_git_hosting do
2
2
3
- desc 'Reload defaults from init.rb into the redmine_git_hosting settings.'
4
- task restore_default_settings : [ :environment ] do
3
+ desc 'Update plugin settings in database (This will read settings from `<redmine_root>/ redmine_git_hosting.yml` and `<plugin_root>/ settings.yml`) '
4
+ task update_settings : [ :environment ] do
5
5
RedmineGitHosting ::ConsoleLogger . title ( 'Reloading defaults from init.rb from command line' ) do
6
6
RedmineGitHosting ::Config . reload_from_file!
7
7
end
8
8
end
9
- task restore_defaults : [ :restore_default_settings ]
9
+
10
+ task :restore_defaults do
11
+ ActiveSupport ::Deprecation . warn ( 'redmine_git_hosting:restore_defaults is deprecated. Use redmine_git_hosting:update_settings instead.' )
12
+ Rake ::Task [ 'redmine_git_hosting:update_settings' ] . invoke
13
+ end
14
+
15
+ task :restore_default_settings do
16
+ ActiveSupport ::Deprecation . warn ( 'redmine_git_hosting:restore_default_settings is deprecated. Use redmine_git_hosting:update_settings instead.' )
17
+ Rake ::Task [ 'redmine_git_hosting:update_settings' ] . invoke
18
+ end
10
19
11
20
12
21
desc 'Purge expired repositories from Recycle Bin'
You can’t perform that action at this time.
0 commit comments