diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/plugin_loader.rb | 8 | ||||
-rw-r--r-- | lib/tasks/redmine.rake | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/redmine/plugin_loader.rb b/lib/redmine/plugin_loader.rb index 7b05a8a3d..1d2f2db48 100644 --- a/lib/redmine/plugin_loader.rb +++ b/lib/redmine/plugin_loader.rb @@ -136,8 +136,12 @@ module Redmine @plugin_directories end - def self.mirror_assets - directories.each(&:mirror_assets) + def self.mirror_assets(name=nil) + if name.present? + directories.find{|d| d.to_s == File.join(directory, name)}.mirror_assets + else + directories.each(&:mirror_assets) + end end end end diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake index 2bebaf18c..c7c257bfc 100644 --- a/lib/tasks/redmine.rake +++ b/lib/tasks/redmine.rake @@ -150,7 +150,7 @@ DESC name = ENV['NAME'] begin - Redmine::Plugin.mirror_assets(name) + Redmine::PluginLoader.mirror_assets(name) rescue Redmine::PluginNotFound abort "Plugin #{name} was not found." end |