Class: Redmine::Installer::Plugin::RedminePlugin

Inherits:
Base
  • Object
show all
Defined in:
lib/redmine-installer/plugins/redmine_plugin.rb

Direct Known Subclasses

EasyProject

Class Method Summary collapse

Methods inherited from Base

all, inherited, title

Methods included from Utils

included

Class Method Details

.am_i_there?Boolean

Search plugins folder

Returns:

  • (Boolean)


5
6
7
8
9
10
11
12
# File 'lib/redmine-installer/plugins/redmine_plugin.rb', line 5

def self.am_i_there?
  records = Dir.glob(File.join('plugins', '*'))
  records.map! do |record|
    File.basename(record)
  end

  records.include?(self.class_name.downcase)
end

.finalObject



14
15
# File 'lib/redmine-installer/plugins/redmine_plugin.rb', line 14

def self.final(*)
end