/[Frey]/trunk/lib/Frey/Config.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Config.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 322 by dpavlin, Thu Nov 6 17:56:59 2008 UTC revision 383 by dpavlin, Mon Nov 17 19:33:29 2008 UTC
# Line 1  Line 1 
1  package Frey::Config;  package Frey::Config;
2  use Moose::Role;  use Moose::Role;
3    
4    #requires 'debug';
5    
6  use YAML qw/LoadFile/;  use YAML qw/LoadFile/;
7  use Hash::Merge qw/merge/;  use Hash::Merge qw/merge/;
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
# Line 43  sub load_config { Line 45  sub load_config {
45                  } else {                  } else {
46                          %config = %{ merge( LoadFile($path) , \%config ) } if -e $path;                          %config = %{ merge( LoadFile($path) , \%config ) } if -e $path;
47                  }                  }
48                  warn "## $path current config = ",dump( %config ) if $self->debug;                  warn "## load_config $path current config = ",dump( %config ) if $self->debug;
49          }          }
50  }  }
51    

Legend:
Removed from v.322  
changed lines
  Added in v.383

  ViewVC Help
Powered by ViewVC 1.1.26