class Redmine::Commands::PullPlugins
Public Class Methods
new(args)
click to toggle source
# File lib/redmine/commands/pull_plugins.rb, line 10 def initialize(args) @args = args end
Public Instance Methods
execute()
click to toggle source
# 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
Private Instance Methods
config()
click to toggle source
# File lib/redmine/commands/pull_plugins.rb, line 26 def config @config ||= Redmine::Config.new(@args.config_path) end