GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SVN::ACCESS::GROUP (3)

.ds Aq ’

NAME

SVN::Access::Group - Object representing a SVN Access file group

CONTENTS

SYNOPSIS



 use SVN::Access;

 my $acl = SVN::Access->new(acl_file => /usr/local/svn/conf/badnews_svn_access.conf);

 # add a member to all groups.
 foreach my $group ($acl->groups) {
     $group->add_member("peter");
 }



DESCRIPTION

Object wrapper around the groups portion of the SVN access control file. Groups usually look like...

[groups] everyone = harry, sally, joe, frank, sally, jane

METHODS

<B>newB> the constructor, takes anything you want in hash form but im looking for members (arrayref), and the name of the group. the meat and potatoes if you will.

Example:



  my $group = SVN::Access::Group->new(
      members   => [qw/ray bob elle/],
      name      => "Carpenters",
  );

  $group->add_member("janette");



<B>membersB> returns a list of the group’s members.

Example:



  my @members = $group->members;



<B>remove_memberB> removes a member from the group.

Example:



  $group->remove_member("ray");



<B>add_memberB> adds a member to the group. returns an error string for some reason. this is inconsistent with the rest of the interface, so expect either other methods to start having this, or expect this functionality to go away.

Example:



  print $group->add_member("becky");
  # should print "Member becky successfully added to Carpenters\n"

  print $group->add_member("janette"):
  # should print "Member janette already in group Carpenters\n"



<B>member_existsB> returns true (the member’s name) if the member exists.

Example:



  if ($group->member_exists("ray")) {
      print "i thought i fired him...\n";
      $group->remove_member("ray"); # carpenters dont need SVN access anyway
  }



<B>nameB> light accessor method which returns the group’s name.

SEE ALSO

subversion (http://subversion.tigris.org/), SVN::ACL, svnserve.conf

AUTHOR

Michael Gregorowicz, <mike@mg2.org>

COPYRIGHT AND LICENSE

Copyright (C) 2012 by Michael Gregorowicz

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SVN::ACCESS::GROUP (3) 2015-05-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.