Class: Proviso::Command::Plugins
- Defined in:
- lib/proviso/commands/plugins.rb
Constant Summary
Constants included from Helpers
Helpers::CONFIG_FILE, Helpers::PROVISO_PATH
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #install ⇒ Object
- #list ⇒ Object (also: #index)
- #uninstall ⇒ Object
Methods inherited from Base
#display, #error, #extract_option, #initialize
Methods included from PluginInterface
#applications, #base_command, #command, included, #selected_application
Methods included from Helpers
#home_directory, #running_on_a_mac?, #running_on_windows?, #yaml_file
Constructor Details
This class inherits a constructor from Proviso::Command::Base
Instance Method Details
#install ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/proviso/commands/plugins.rb', line 10 def install plugin = Proviso::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 |