Class: Redmine::Commands::PullPlugins
- Inherits:
-
Object
- Object
- Redmine::Commands::PullPlugins
- Defined in:
- lib/redmine/commands/pull_plugins.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ PullPlugins
constructor
A new instance of PullPlugins.
Constructor Details
#initialize(args) ⇒ PullPlugins
Returns a new instance of PullPlugins.
10 11 12 |
# File 'lib/redmine/commands/pull_plugins.rb', line 10 def initialize(args) @args = args end |
Instance Method Details
#execute ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/redmine/commands/pull_plugins.rb', line 14 def execute config.plugins.values.each do |plugin| installer = Redmine::Utils::PluginInstaller.new( @args.plugins_path, OpenStruct.new(plugin) ) installer.install end end |