Parent

Commands::Pack::Uninstall

Public Class Methods

new(base_command) click to toggle source
# File lib/commands/plugin/commands.rb, line 607
def initialize(base_command)
  @base_command = base_command
end

Public Instance Methods

options() click to toggle source
# File lib/commands/plugin/commands.rb, line 611
def options
  OptionParser.new do |o|
    o.set_summary_indent('  ')
    o.banner =    "Usage: #{@base_command.script_name} pack:uninstall pack_file_or_url"
    o.define_head "Uninstalls plugin pack at pack_file_or_url"
  end
end
parse!(args) click to toggle source
# File lib/commands/plugin/commands.rb, line 619
def parse!(args)
  uri = args.first
  plugin_pack = PluginPackParser.parse_spec_file(uri)
  plugin_pack.plugins.each do |plugin|
    puts "+ [Removing] #{plugin.name}"
    plugin.uninstall
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.