Changeset 391

Show
Ignore:
Timestamp:
03/11/06 23:38:09
Author:
miyagawa
Message:

renamed cdefine_recipes and recipes.

  • define_recipes: to define recipes in included files
  • recipes: to load recipes, just like plugins
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger.pm

    r381 r391  
    9090    my($self, $config) = @_; 
    9191 
    92     for (@{ $config->{define_recipes} }) { 
    93         $self->error("no such recipe to $_") unless $config->{recipe}->{$_}; 
    94         my $plugin = $config->{recipe}->{$_}; 
     92    for (@{ $config->{recipes} }) { 
     93        $self->error("no such recipe to $_") unless $config->{define_recipes}->{$_}; 
     94        my $plugin = $config->{define_recipes}->{$_}; 
    9595        $plugin = [ $plugin ] unless ref($plugin) eq 'ARRAY'; 
    9696        push(@{ $config->{plugins} }, @{ $plugin });