[csw-devel] SF.net SVN: opencsw:[402] catalog_signatures/catalog_gpg
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Thu Jul 21 04:59:11 CEST 2011
Revision: 402
http://opencsw.svn.sourceforge.net/opencsw/?rev=402&view=rev
Author: bdwalton
Date: 2011-07-21 02:59:11 +0000 (Thu, 21 Jul 2011)
Log Message:
-----------
setup some basic option handling framework with defaults as per old hard coded variable
Signed-off-by: Ben Walton <bwalton at artsci.utoronto.ca>
Modified Paths:
--------------
catalog_signatures/catalog_gpg
Modified: catalog_signatures/catalog_gpg
===================================================================
--- catalog_signatures/catalog_gpg 2011-07-21 02:58:53 UTC (rev 401)
+++ catalog_signatures/catalog_gpg 2011-07-21 02:59:11 UTC (rev 402)
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
-require 'pp'
require 'webrick'
+require 'optparse'
+require 'ostruct'
begin
retried = nil
@@ -16,7 +17,9 @@
end
end
-mirror_path = File.dirname($0)
+opts = OpenStruct.new
+opts.port = 9981
+opts.mirror_path = File.dirname($0)
server = WEBrick::HTTPServer.new({ :Port => 9981 })
server.mount "/clearsign", GPGDaemon, mirror_path
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list