remove trailing white-spaces from lib/generators/redmine_plugin/redmine_plugin_generator.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9217 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ea2e5d959f
commit
fd2af060a9
|
@ -1,13 +1,13 @@
|
|||
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"
|
||||
|
@ -22,7 +22,7 @@ class RedminePluginGenerator < Rails::Generator::NamedBase
|
|||
m.directory "#{plugin_path}/lang"
|
||||
m.directory "#{plugin_path}/config/locales"
|
||||
m.directory "#{plugin_path}/test"
|
||||
|
||||
|
||||
m.template 'README.rdoc', "#{plugin_path}/README.rdoc"
|
||||
m.template 'init.rb.erb', "#{plugin_path}/init.rb"
|
||||
m.template 'en.yml', "#{plugin_path}/lang/en.yml"
|
||||
|
|
Loading…
Reference in New Issue