Class: Redmine::Commands::PullPlugins

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine/commands/pull_plugins.rb

Instance Method Summary collapse

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

#executeObject



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