[Brazosvalley-pm] CPAN authorship

Jeremy Fluhmann jeremy at msc.tamu.edu
Fri Aug 11 08:48:15 PDT 2006


Hooray!  I now have a PAUSE ID and will soon be a CPAN author (if all
testing goes well).

 

http://search.cpan.org/~jfluhmann/

 

The first module I'm putting up is a Win32 IIS admin module.  When I
worked in Student Activities at Texas A&M University, I maintained the
servers that supported the student organization web accounts.  The
servers were Windows 2000 & 2003 (IIS 5 & IIS 6, respectively).  The
'old' way of creating new organization accounts was manual and involved
a lot of clicking and typing.  I developed a script that would do most
of the work for me.  I had a little bit of trouble finding information
about how to create 'sites' and 'virtual sites' in IIS with Perl.  I was
finally able to use Win32::OLE to do what I needed.

 

Someone already uploaded a Win32::IIS::Admin module to the CPAN, but it
uses cscript (I have no experience with it).  I'm trying to think of a
different namespace for mine, and I thought about Win32::IIS::Server.
Would that make enough sense for someone?  Here's a sample of how to use
it:

 

use Win32::IIS::Server;

...

my $server = Win32::IIS::Server->new( name => 'www.myserver.com' );

 

# create new site

my $siteIndex = $server->createSite( 

    site   => $site,       # test1.myserver.com

    name   => $name,       # Test

    folder => $folder,     # e:\test1\www

);

 

# create new ftp account

$server->createFTP(

    name   => $name,       # Test

    folder => $folder,     # e:\test1\www

);

 

#create new virtual site

$server->createVirtual(

    name   => $name,       # test

    folder => $folder,     # e:\test_virtual\www

);

 

 

Feel free to offer any thoughts about a different namespace.  I'm sure
I'll have some kinks to work out to actually getting the module on the
CPAN.  I've only written modules for myself or work (which had no
testing, not much portability, and was a crap shoot on documentation),
so getting the module ready for the CPAN will be a new (and thorough)
experience.  As I mentioned before, I've started incorporating testing
into most of my new code, so hopefully I'll get this right.

 

Jeremy

 

 

Jeremy Fluhmann
Programmer/Analyst
Memorial Student Center
Texas A&M University
979-845-8893
jeremy at msc.tamu.edu

This e-mail and any files transmitted with it are confidential. If you
are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution, or use of the contents of this
information is prohibited. If you have received this e-mail transmission
in error, please notify me by telephone or via return e-mail and delete
this e-mail from your system.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/brazosvalley-pm/attachments/20060811/3c1953a3/attachment.html 


More information about the Brazosvalley-pm mailing list