class CmdSubmit::RedminePlugin

Registers this gems a Redmine plugin and applies the needed patches

Public Class Methods

new() click to toggle source
# File lib/cmd_submit/redmine_plugin.rb, line 6
def initialize
  register!
  boot!
  mirror_assets!
end

Private Instance Methods

boot!() click to toggle source
# File lib/cmd_submit/redmine_plugin.rb, line 26
def boot!
  require "cmd_submit/hooks"
end
mirror_assets!() click to toggle source
# File lib/cmd_submit/redmine_plugin.rb, line 30
def mirror_assets!
  @plugin.mirror_assets
end
register!() click to toggle source
# File lib/cmd_submit/redmine_plugin.rb, line 14
def register!
  @plugin = Redmine::Plugin.register :cmd_submit do
    name NAME
    author AUTHORS.keys.join(", ")
    description DESCRIPTION
    version VERSION
    url URL
    author_url URL
    directory Engine.root
  end
end