Desarrollo de pluginspara #redmineCambios significativos entre ramas 1.x y 2.x@ imonteroperez
Redmine
Desarrollo de un plugin en tres pasos
1. Crear el plugin
$ ruby script/rails generate redmine_plugin <plugin_name>         create plugins/<plugin_name>/app         create plugins/...
$ ruby script/rails generate redmine_plugin <plugin_name>         create plugins/<plugin_name>/app         create plugins/...
Redmine::Plugin.register :<plugin_name> do                   name <NAME>                   author <AUTHOR>                ...
2. Crear el modelo
$ ruby script/rails generate redmine_plugin_model <plugin_name>  <model_name> [field[:type][:index] field[:type][:index] ....
3. Crear el controlador
$ ruby script/rails generate redmine_plugin_controller <plugin_name> <controller_name> [<actions>] create plugins/<plugin_...
Recursos
http://www.redmine.org/projects/redmine/wiki/Plugin_Tutorialhttp://www.redmine.org/pluginshttp://www.redmine.org/projects/...
Cambios 2.x
http://projects.andriylesyuk.com/projects/base/wiki/Porting-to-Redmine-2
Gracias por vuestra atenció n!
Redmine Betabeers SVQ
Redmine Betabeers SVQ
Redmine Betabeers SVQ
Upcoming SlideShare
Loading in …5
×

Redmine Betabeers SVQ

1,055 views

Published on

Desarrollo de plugins para Redmine

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,055
On SlideShare
0
From Embeds
0
Number of Embeds
367
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Redmine Betabeers SVQ

  1. 1. Desarrollo de pluginspara #redmineCambios significativos entre ramas 1.x y 2.x@ imonteroperez
  2. 2. Redmine
  3. 3. Desarrollo de un plugin en tres pasos
  4. 4. 1. Crear el plugin
  5. 5. $ ruby script/rails generate redmine_plugin <plugin_name> create plugins/<plugin_name>/app create plugins/<plugin_name>/app/controllers create plugins/<plugin_name>/app/helpers create plugins/<plugin_name>/app/models create plugins/<plugin_name>/app/views create plugins/<plugin_name>/db/migrate create plugins/<plugin_name>/lib/tasks create plugins/<plugin_name>/assets/images create plugins/<plugin_name>/assets/javascripts create plugins/<plugin_name>/assets/stylesheets create plugins/<plugin_name>/config/locales create plugins/<plugin_name>/test create plugins/<plugin_name>/README.rdoc create plugins/<plugin_name>/init.rb create plugins/<plugin_name>/config/routes.rb create plugins/<plugin_name>/config/locales/en.yml create plugins/<plugin_name>/test/test_helper.rb
  6. 6. $ ruby script/rails generate redmine_plugin <plugin_name> create plugins/<plugin_name>/app create plugins/<plugin_name>/app/controllers create plugins/<plugin_name>/app/helpers create plugins/<plugin_name>/app/models create plugins/<plugin_name>/app/views create plugins/<plugin_name>/db/migrate create plugins/<plugin_name>/lib/tasks create plugins/<plugin_name>/assets/images create plugins/<plugin_name>/assets/javascripts create plugins/<plugin_name>/assets/stylesheets create plugins/<plugin_name>/config/locales create plugins/<plugin_name>/test create plugins/<plugin_name>/README.rdoc create plugins/<plugin_name>/init.rb create plugins/<plugin_name>/config/routes.rb create plugins/<plugin_name>/config/locales/en.yml create plugins/<plugin_name>/test/test_helper.rb
  7. 7. Redmine::Plugin.register :<plugin_name> do name <NAME> author <AUTHOR> description <DESCRIPTION> version 0.0.1 endDir["#{File.dirname(__FILE__)}/config/initializers/**/*.rb"].sort.each do |initializer| require initializerendAPP_CONFIG = YAML.load_file("#{File.dirname(__FILE__)}/../config.yml")[Rails.env]require <module> http://<HOST>:<PORT>/admin/plugins
  8. 8. 2. Crear el modelo
  9. 9. $ ruby script/rails generate redmine_plugin_model <plugin_name> <model_name> [field[:type][:index] field[:type][:index] ...] create plugins/<plugin_name>/app/models/<model_name>.rb create plugins/<plugin_name>/test/unit/<model_name>_test.rb create plugins/<plugin_name>/db/migrate/001_create_<model_name>s.rb
  10. 10. 3. Crear el controlador
  11. 11. $ ruby script/rails generate redmine_plugin_controller <plugin_name> <controller_name> [<actions>] create plugins/<plugin_name>/app/controllers/<controller_name>_controller.rb create plugins/<plugin_name>/app/helpers/<controller_name>_helper.rb create plugins/<plugin_name>/test/functional/<controller_name>_controller_test.rb { create plugins/<plugin_name>/app/views/<controller_name>/<action>.html.erb }
  12. 12. Recursos
  13. 13. http://www.redmine.org/projects/redmine/wiki/Plugin_Tutorialhttp://www.redmine.org/pluginshttp://www.redmine.org/projects/redmine/wiki/Plugin_List
  14. 14. Cambios 2.x
  15. 15. http://projects.andriylesyuk.com/projects/base/wiki/Porting-to-Redmine-2
  16. 16. Gracias por vuestra atenció n!

×