Method: Coherent::Plugin#install
- Defined in:
- lib/plugin/plugin.rb
#install(method = nil, options = {}) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/plugin/plugin.rb', line 32 def install(method=nil, = {}) method ||= project_env.best_install_method? if :http == method method = :export if svn_url? method = :git if git_url? end uninstall if installed? and [:force] unless installed? send("install_using_#{method}", ) run_install_hook else puts "already installed: #{name} (#{uri}). pass --force to reinstall" end end |