Class: OpenProject::PluginGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/open_project/plugin/plugin_generator.rb

Overview

– copyright OpenProject is a project management system. Copyright © 2013 the OpenProject Foundation (OPF)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

See doc/COPYRIGHT.md for more details. ++

Instance Method Summary collapse

Instance Method Details

#full_nameObject



27
28
29
30
31
# File 'lib/generators/open_project/plugin/plugin_generator.rb', line 27

def full_name
  @full_name ||= begin
    "openproject-#{plugin_name}"
  end
end

#generate_pluginObject

every public method is run when the generator is invoked



22
23
24
25
# File 'lib/generators/open_project/plugin/plugin_generator.rb', line 22

def generate_plugin
  plugin_dir
  lib_dir
end