# File lib/rubygems/gem_commands.rb, line 796
    def execute
      if local?
        say
        say "*** LOCAL GEMS ***"
        output_query_results(Gem::cache.search(options[:name]))
      end
      if remote?
        say
        say "*** REMOTE GEMS ***"
        output_query_results(Gem::SourceInfoCache.search(options[:name]))
      end
    end