#!/usr/bin/env ruby # encoding: utf-8 $: << File.expand_path('/var/www/oddb.org/src', File.dirname(__FILE__)) require 'drb' require 'util/oddbconfig' class RequestStub end ## # * ODDB::Package # * ODDB::Part # * ODDB::ActiveAgent class PartChecker def initialize @admin = ThreadGroup.new req = RequestStub.new @request = DRb.start_service('druby://localhost:0', req) @app = DRbObject.new(nil, ODDB::SERVER_URI) end def count_and_delete result = '' result.extend(DRb::DRbUndumped) input = <