Changeset 3725

Show
Ignore:
Timestamp:
12/28/07 15:08:24 (13 months ago)
Author:
tokuhirom
Message:

Archer:
- user's custom plugin
- added some basic test.
- revert some buggy code

Location:
lang/perl/Archer/trunk
Files:
4 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Archer/trunk/lib/Archer.pm

    r3715 r3725  
    8484        } 
    8585 
    86         my $class = "Archer::Plugin::$plugin->{module}"; 
     86        my $class = ($plugin->{module} =~ /^\+(.+)$/) ? $1 : "Archer::Plugin::$plugin->{module}"; 
    8787        $self->log( 'debug' => "load $class" ); 
    8888        $class->use or die $@; 
     
    107107    $parallel->use or die $@; 
    108108 
    109     # construct elements 
    110     # this one doesn't work for me 
    111     # my $server_tree = $self->{config}->{projects}->{$self->{project}}; 
    112     # but this one do 
    113     my $server_tree = $self->{ config }->{ projects }; 
     109    my $server_tree = $self->{config}->{projects}->{$self->{project}}; 
    114110 
    115111    my @elems;