2007-11-10 07:48:56 +00:00
|
|
|
require 'rubygems/command'
|
2012-11-29 06:52:18 +00:00
|
|
|
require 'rubygems/commands/list_command'
|
2007-11-10 07:48:56 +00:00
|
|
|
|
2012-11-29 06:52:18 +00:00
|
|
|
class Gem::Commands::SearchCommand < Gem::Commands::ListCommand
|
2009-03-06 03:56:38 +00:00
|
|
|
|
2009-06-09 21:38:59 +00:00
|
|
|
def initialize
|
|
|
|
super 'search', 'Display all gems whose name contains STRING'
|
|
|
|
|
2012-11-29 06:52:18 +00:00
|
|
|
@defaults[:domain] = :remote
|
2007-11-10 07:48:56 +00:00
|
|
|
end
|
2009-06-09 21:38:59 +00:00
|
|
|
|
|
|
|
def defaults_str # :nodoc:
|
2012-11-29 06:52:18 +00:00
|
|
|
"--remote --no-details"
|
2009-06-09 21:38:59 +00:00
|
|
|
end
|
|
|
|
|
2007-11-10 07:48:56 +00:00
|
|
|
end
|
2009-06-09 21:38:59 +00:00
|
|
|
|