class Commands::About
Public Class Methods
new(base_command)
click to toggle source
# File lib/commands/plugin/commands.rb, line 520 def initialize(base_command) @base_command = base_command end
Public Instance Methods
options()
click to toggle source
# File lib/commands/plugin/commands.rb, line 524 def options OptionParser.new do |o| o.set_summary_indent(' ') o.banner = "Usage: #{@base_command.script_name} about name [name]..." o.define_head "Shows plugin info at {url}/about.yml." end end
parse!(args)
click to toggle source
# File lib/commands/plugin/commands.rb, line 532 def parse!(args) options.parse!(args) args.each do |name| if plugin = ::Plugin.find(name) if about_hash = plugin.about puts about_hash.to_yaml + "\n" next end end puts "Plugin #{name} could not be found in the known repositories." puts end end