Class: EasyProject

Inherits:
Redmine::Installer::Plugin::RedminePlugin show all
Defined in:
lib/redmine-installer/plugins/redmine_plugin.rb

Overview

EasyProject

www.easyredmine.com

Easy Redmine is complex project management web application best suited to project teams between 10 - 100 users. Whether you manage just yourself or a huge team of software developers, Easy Redmine will provide all necessary project management features to complete your projects on time, scope and budget.

Class Method Summary collapse

Methods inherited from Redmine::Installer::Plugin::RedminePlugin

am_i_there?

Methods inherited from Redmine::Installer::Plugin::Base

all, inherited, title

Methods included from Redmine::Installer::Utils

included

Class Method Details

.install(base) ⇒ Object



35
36
37
# File 'lib/redmine-installer/plugins/redmine_plugin.rb', line 35

def self.install(base)
  command.rake_easyproject_install(base.env) if am_i_there?
end

.upgrade(base) ⇒ Object



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/redmine-installer/plugins/redmine_plugin.rb', line 39

def self.upgrade(base)
  # Copy client modification folders
  # plugins/easyproject/easy_plugins/modification_*
  unless base.options['skip-old-modifications']
    easy_plugins_dir = File.join('plugins', 'easyproject', 'easy_plugins')
    old_modifications = Dir.glob(File.join(base.redmine_root, easy_plugins_dir, 'modification_*'))
    new_modifications = Dir.glob(File.join(base.tmp_redmine_root, easy_plugins_dir, 'modification_*'))

    # Modifications which are on old redmine but not new
    missing_modifications = old_modifications - new_modifications

    FileUtils.cp_r(missing_modifications, File.join(base.tmp_redmine_root, easy_plugins_dir))
  end

  install(base)
end