diff options
Diffstat (limited to 'railties/lib/commands')
-rw-r--r-- | railties/lib/commands/plugin.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/commands/plugin.rb b/railties/lib/commands/plugin.rb index 9ae0a40314..0cb9b83894 100644 --- a/railties/lib/commands/plugin.rb +++ b/railties/lib/commands/plugin.rb @@ -166,6 +166,7 @@ class Plugin unless installed? send("install_using_#{method}", options) + run_install_hook else puts "already installed: #{name} (#{uri}). pass --force to reinstall" end @@ -185,6 +186,12 @@ class Plugin end private + + def run_install_hook + install_hook_file = "#{rails_env.root}/vendor/plugins/#{name}/install.rb" + load install_hook_file if File.exists? install_hook_file + end + def install_using_export(options = {}) svn_command :export, options end |