class Jenkins2API::Command::Plugin
Contains all the commands under plugin
namespace
Public Instance Methods
install(name, id)
click to toggle source
Install a plugin
# File lib/commands/plugin.rb, line 27 def install(name, id) client.configuration.plugin_install(name, id) end
list()
click to toggle source
List installed plugins
# File lib/commands/plugin.rb, line 10 def list puts "Legend:\n I Inactive\n U Update is available\n" client.configuration.plugin_list.each do |plugin| flag = ' ' flag = 'I' unless plugin['active'] flag = 'U' if plugin['hasUpdate'] printf( " [%s] %s (%s@%s)\n", flag, plugin['longName'], plugin['shortName'], plugin['version'] ) end end