Changeset 118


Ignore:
Timestamp:
03/26/09 19:51:40 (15 years ago)
Author:
nanardon
Message:
  • allow to put config file (vote.yml) in /etc
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Vote.pm

    r70 r118  
    3535 
    3636__PACKAGE__->config( name => 'Vote' ); 
     37 
     38# Config file, in tree, else should be in /etc 
     39 
     40__PACKAGE__->config( 
     41    'Plugin::ConfigLoader' => { 
     42        file => -f __PACKAGE__->path_to('vote.yml') 
     43            ? __PACKAGE__->path_to('vote.yml') 
     44            : '/etc/vote.yml', 
     45    } 
     46); 
    3747 
    3848__PACKAGE__->config->{session} = { 
  • trunk/vote.yml.example

    r87 r118  
    11--- 
    22name: Vote 
     3-- db: connection, see libpq documentation 
     4-- dbname=BASENAME;host=SERVER;user=USER;password=PASS 
    35db: dbname=vote 
    4 -- The smtp serveur to use 
     6-- The smtp serveur to use, default is localhost 
    57smtp: 
Note: See TracChangeset for help on using the changeset viewer.