Changeset 3713 for lang/perl/Archer/trunk/lib/Archer/ConfigLoader.pm
- Timestamp:
- 12/28/07 11:50:54 (13 months ago)
- Files:
-
- 1 modified
-
lang/perl/Archer/trunk/lib/Archer/ConfigLoader.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Archer/trunk/lib/Archer/ConfigLoader.pm
r3697 r3713 2 2 use strict; 3 3 use warnings; 4 use YAML ::Syck;4 use YAML; 5 5 use Storable; 6 6 use Carp; … … 20 20 || ( -e $stuff && -r _ ) ) 21 21 { 22 $config = YAML:: Syck::LoadFile($stuff);22 $config = YAML::LoadFile($stuff); 23 23 $context->{config_path} = $stuff if $context; 24 24 } 25 25 elsif ( ref($stuff) && ref($stuff) eq 'SCALAR' ) { 26 $config = YAML:: Syck::Load( ${$stuff} );26 $config = YAML::Load( ${$stuff} ); 27 27 } 28 28 elsif ( ref($stuff) && ref($stuff) eq 'HASH' ) { … … 33 33 } 34 34 35 my $res = validate( YAML:: Syck::LoadFile($schema_file), $config );35 my $res = validate( YAML::LoadFile($schema_file), $config ); 36 36 $context->log( error => $res ) unless $res == 1; 37 37
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)