| 1 |
Index: vendor/rails/railties/lib/commands/plugin.rb |
|---|
| 2 |
=================================================================== |
|---|
| 3 |
--- vendor/rails/railties/lib/commands/plugin.rb (revision 7406) |
|---|
| 4 |
+++ vendor/rails/railties/lib/commands/plugin.rb (working copy) |
|---|
| 5 |
@@ -173,6 +173,8 @@ |
|---|
| 6 |
|
|---|
| 7 |
uninstall if installed? and options[:force] |
|---|
| 8 |
|
|---|
| 9 |
+ @name = options[:name] if options[:name] |
|---|
| 10 |
+ |
|---|
| 11 |
unless installed? |
|---|
| 12 |
send("install_using_#{method}", options) |
|---|
| 13 |
run_install_hook |
|---|
| 14 |
@@ -733,6 +735,8 @@ |
|---|
| 15 |
"Ignored if subversion is not used.") { |v| @options[:revision] = v } |
|---|
| 16 |
o.on( "-f", "--force", |
|---|
| 17 |
"Reinstalls a plugin if it's already installed.") { |v| @options[:force] = true } |
|---|
| 18 |
+ o.on( "-n NAME", "--name NAME", |
|---|
| 19 |
+ "Specify plugin name (handy if it can't be guessed from URL).") { |v| @options[:name] = v } |
|---|
| 20 |
o.separator "" |
|---|
| 21 |
o.separator "You can specify plugin names as given in 'plugin list' output or absolute URLs to " |
|---|
| 22 |
o.separator "a plugin repository." |
|---|