##// END OF EJS Templates
By default, only show statuses that are used by the tracker on the workflow edit view....
By default, only show statuses that are used by the tracker on the workflow edit view. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3188 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2685:724cf4760520
r3074:6bf0723d0654
Show More
redmine_plugin_generator.rb
33 lines | 1.3 KiB | text/x-ruby | RubyLexer
/ lib / generators / redmine_plugin / redmine_plugin_generator.rb
Jean-Philippe Lang
Merged hooks branch @ r1785 into trunk....
r1785 class RedminePluginGenerator < Rails::Generator::NamedBase
attr_reader :plugin_path, :plugin_name, :plugin_pretty_name
def initialize(runtime_args, runtime_options = {})
super
@plugin_name = "redmine_#{file_name.underscore}"
@plugin_pretty_name = plugin_name.titleize
@plugin_path = "vendor/plugins/#{plugin_name}"
end
def manifest
record do |m|
m.directory "#{plugin_path}/app/controllers"
m.directory "#{plugin_path}/app/helpers"
m.directory "#{plugin_path}/app/models"
m.directory "#{plugin_path}/app/views"
m.directory "#{plugin_path}/db/migrate"
m.directory "#{plugin_path}/lib/tasks"
m.directory "#{plugin_path}/assets/images"
m.directory "#{plugin_path}/assets/javascripts"
m.directory "#{plugin_path}/assets/stylesheets"
m.directory "#{plugin_path}/lang"
Eric Davis
Added the Rails i18n language file to the plugin generator....
r2685 m.directory "#{plugin_path}/config/locales"
Jean-Philippe Lang
Merged hooks branch @ r1785 into trunk....
r1785 m.directory "#{plugin_path}/test"
Eric Davis
Renamed the .rb files in the plugin_generator to end in .erb. The .rb was...
r1947 m.template 'README.rdoc', "#{plugin_path}/README.rdoc"
m.template 'init.rb.erb', "#{plugin_path}/init.rb"
Jean-Philippe Lang
Merged hooks branch @ r1785 into trunk....
r1785 m.template 'en.yml', "#{plugin_path}/lang/en.yml"
Eric Davis
Added the Rails i18n language file to the plugin generator....
r2685 m.template 'en_rails_i18n.yml', "#{plugin_path}/config/locales/en.yml"
Eric Davis
Renamed the .rb files in the plugin_generator to end in .erb. The .rb was...
r1947 m.template 'test_helper.rb.erb', "#{plugin_path}/test/test_helper.rb"
Jean-Philippe Lang
Merged hooks branch @ r1785 into trunk....
r1785 end
end
end