Ignore:
Timestamp:
07/24/12 22:56:06 (12 years ago)
Author:
nanardon
Message:
  • rename options() to config() to clarify its role
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql.pm

    r1023 r1071  
    3636=cut 
    3737 
    38 =head2 new(%options) 
     38=head2 new(%config) 
    3939 
    4040Create a new LATMOS::Ad object for windows AD $domain. 
     
    4747 
    4848sub new { 
    49     my ($class, %options) = @_; 
     49    my ($class, %config) = @_; 
    5050     
    5151    my $base = { 
    52         db_conn => $options{db_conn}, 
     52        db_conn => $config{db_conn}, 
    5353    }; 
    5454 
     
    324324} 
    325325 
    326 =head2 rename_nethost ($nethostname, $to, %options) 
     326=head2 rename_nethost ($nethostname, $to, %config) 
    327327 
    328328Facility function to rename computer to new name 
     
    331331 
    332332sub rename_nethost { 
    333     my ($self, $nethostname, $to, %options) = @_; 
     333    my ($self, $nethostname, $to, %config) = @_; 
    334334    { 
    335335        my $obj = $self->get_object('nethost', $nethostname); 
     
    339339    } 
    340340    $self->rename_object('nethost', $nethostname, $to) or return; 
    341     if ($options{'addcname'}) { 
     341    if ($config{'addcname'}) { 
    342342        my $obj = $self->get_object('nethost', $to); 
    343343        my @cname = grep { $_ } $obj->get_attributes('cname'); 
Note: See TracChangeset for help on using the changeset viewer.