Skip Menu |

This queue is for tickets about the Config-JFDI CPAN distribution.

Report information
The Basics
Id: 92414
Status: resolved
Priority: 0/
Queue: Config-JFDI

People
Owner: Nobody in particular
Requestors: DAVEWOOD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: CATALYST_CONFIG_LOCAL_SUFFIX is ignored
Today i wanted to run a script on my testing environment, loading the testing config file with CATALYST_CONFIG_LOCAL_SUFFIX=testing but it loaded the myapp_local file instead when i used MYAPP_CONFIG_LOCAL_SUFFIX=testing instead it worked as expected. his might have to do with passing name => 'MYAPP' to the constructor my $home = __DIR__ . '/../../..'; my $jfdi = Config::JFDI->new( name => "MYAPP", path => $home, );
this is still an issue. here is some more code. david@dry:~/dev$ catalyst.pl MyApp ... david@dry:~/dev$ cd MyApp/ david@dry:~/dev/MyApp$ cat jfdi.pl #!/usr/bin/env perl use strict; use warnings; use feature qw/ say /; use Config::JFDI; my $config = Config::JFDI->new( name => "MyApp", path => "." ); my $config_hash = $config->get; use Data::Dumper; say Dumper($config_hash); david@dry:~/dev/MyApp$ cat myapp_local.conf mode local david@dry:~/dev/MyApp$ cat myapp_testing.conf mode testing david@dry:~/dev/MyApp$ perl jfdi.pl $VAR1 = { 'mode' => 'local', 'name' => 'MyApp' }; david@dry:~/dev/MyApp$ MYAPP_CONFIG_LOCAL_SUFFIX=testing perl jfdi.pl $VAR1 = { 'mode' => 'testing', 'name' => 'MyApp' }; david@dry:~/dev/MyApp$ CATALYST_CONFIG_LOCAL_SUFFIX=testing perl jfdi.pl $VAR1 = { 'mode' => 'local', 'name' => 'MyApp' };
after setting env_lookup JFDI does what I want. my $config = Config::JFDI->new( name => "MyApp", path => ".", env_lookup => 'CATALYST', );