Hello

How are you handling configuration for applications or code that run
outside of Catalyst?

For example, in my model tests, I have code like this:

    use MyCompany::CatApp;
    my $app = MyCompany::CatApp->new();
    my $model = $app->model('DB::Model')->new({});
    ok( $model->insert );

etc.

This way the model tests are talking to the right database as
configured for that environment. But it seems slow to run and it's not
the right coupling if I have, say, a cronjob that wants to use the
same models.

Are there any patterns anyone can recommend?

Dan

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to