Class: OpenProject::PluginGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- OpenProject::PluginGenerator
- 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
- #full_name ⇒ Object
-
#generate_plugin ⇒ Object
every public method is run when the generator is invoked.
Instance Method Details
#full_name ⇒ Object
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_plugin ⇒ Object
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 |