Class: Heroku::Command::Plugins
- Defined in:
- lib/heroku/commands/plugins.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #install ⇒ Object
- #list ⇒ Object (also: #index)
- #uninstall ⇒ Object
Methods inherited from Base
#app_urls, #ask, #display, #error, #escape, #extract_app, #extract_app_in_dir, #extract_option, #format_date, #git_remotes, #git_url, #heroku, #initialize, #shell, #web_url
Methods included from Helpers
#home_directory, #running_on_a_mac?, #running_on_windows?
Constructor Details
This class inherits a constructor from Heroku::Command::Base
Instance Method Details
#install ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/heroku/commands/plugins.rb', line 10 def install plugin = Heroku::Plugin.new(args.shift) if plugin.install display "#{plugin} installed" else error "Could not install #{plugin}. Please check the URL and try again" end end |