execute (Gem::Commands::QueryCommand)

    # File lib/rubygems/commands/query_command.rb, line 38
      def execute
        name = options[:name]

        if local? then
          say
          say "*** LOCAL GEMS ***"
          say
          output_query_results Gem.cache.search(name)
        end

        if remote? then
          say
          say "*** REMOTE GEMS ***"
          say
          output_query_results Gem::SourceInfoCache.search(name)
        end
      end