Changeset 1676

Show
Ignore:
Timestamp:
09/10/06 17:15:35
Author:
miyagawa
Message:

allow '-' as config parameter to read from STDIN. via http://d.hatena.ne.jp/drawnboy/20060910/1157818916

Files:

Legend:

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

    r1626 r1676  
    1313 
    1414    my $config; 
    15     if (-e $stuff && -r _) { 
     15    if ((!ref($stuff) && $stuff eq '-') || 
     16        (-e $stuff && -r _)) { 
    1617        $config = YAML::LoadFile($stuff); 
    1718        $context->{config_path} = $stuff if $context;