Changeset 17994
- Timestamp:
- 08/22/08 00:13:41 (5 months ago)
- Location:
- lang/perl/Nanto/trunk
- Files:
-
- 2 added
- 2 modified
-
lib/Nanto/Config/Any.pm (modified) (1 diff)
-
lib/Nanto/Config/YAMLSyck.pm (modified) (2 diffs)
-
t/Config/Any.t (added)
-
t/lib/Foo/Any.pm (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Nanto/trunk/lib/Nanto/Config/Any.pm
r17993 r17994 16 16 17 17 $cache->{$class} ||= do { 18 my $cfg = catfile(Nanto::Utils::home($class),config_fname);18 my $cfg = Nanto::Utils::home($class)->file(config_fname); 19 19 croak "$cfg not found" unless -f $cfg; 20 20 Config::Any->load_files({ files => [ $cfg ], use_ext => 1 })->[0]->{$cfg}; -
lang/perl/Nanto/trunk/lib/Nanto/Config/YAMLSyck.pm
r17992 r17994 4 4 5 5 use Nanto::Utils; 6 use File::Spec::Functions; 7 use Carp; 8 use YAML::Syck; 6 use Carp (); 7 use YAML::Syck (); 9 8 10 9 my $cache = {}; … … 16 15 17 16 $cache->{$class} ||= do { 18 my $cfg = catfile(Nanto::Utils::home($class),config_fname);19 croak "$cfg not found" unless -f $cfg;17 my $cfg = Nanto::Utils::home($class)->file(config_fname); 18 Carp::croak "$cfg not found" unless -f $cfg; 20 19 YAML::Syck::LoadFile($cfg); 21 20 }; 22 21 } 23 22 24 1;23 no Moose; __PACKAGE__->meta->make_immutable; 25 24 26 25 # this is
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)